[flang-commits] [clang] [flang] [clang][OpenMP] Diagnose invalid allocator in `#pragma omp allocate`; avoid null deref (PR #158146)
    Shafik Yaghmour via flang-commits 
    flang-commits at lists.llvm.org
       
    Thu Sep 11 13:51:41 PDT 2025
    
    
  
================
@@ -3408,8 +3418,7 @@ applyOMPAllocateAttribute(Sema &S, VarDecl *VD,
       (Alignment->isTypeDependent() || Alignment->isValueDependent() ||
        Alignment->isInstantiationDependent() ||
        Alignment->containsUnexpandedParameterPack()))
-    // Apply later when we have a usable value.
-    return;
+    return; // apply later
----------------
shafik wrote:
The old comment seems more helpful, please remove this change.
https://github.com/llvm/llvm-project/pull/158146
    
    
More information about the flang-commits
mailing list