================
@@ -12876,6 +12799,9 @@ Address
CGOpenMPRuntime::getAddressOfLocalVariable(CodeGenFunction &CGF,
// Use the default allocation.
if (!isAllocatableDecl(VD))
return UntiedAddr;
+ // Unreachable declaration: nothing can run the allocation.
----------------
akash-manna-sky wrote:
Yes, sure, moved it up, right after the untied-task lookup. It can't go above
that lookup: untied-task locals keep their task-data address even when the
declaration is unreachable. The `IRBuilder` variant now checks it together with
the null VD.
https://github.com/llvm/llvm-project/pull/242302
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits