[PATCH] D71227: [cuda][hip] Fix function overload resolution in the global initiailizer.

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 12:14:56 PST 2020


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





More information about the cfe-commits mailing list