rjmccall added inline comments.

================
Comment at: clang/include/clang/Sema/Sema.h:11442
+      ContextDecl = getCUDACurrentNonLocalVariable();
+    return ContextDecl;
+  }
----------------
This is tricky because we could be in a nested context, not just the 
initializer, and that context just might not be a function.   For example, 
there could be a local class in a lambda or something like that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71227/new/

https://reviews.llvm.org/D71227



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to