rjmccall added a comment. I think it would be more reasonable to just change `getDeclLanguageLinkage` to check for a kernel function.
================ Comment at: lib/AST/Decl.cpp:2940 + if (hasAttr<OpenCLKernelAttr>()) + return true; return isDeclExternC(*this); ---------------- Both of these changes should be unnecessary because they ultimately defer to `isInExternCContext`. I assume that OpenCL bans making a class member function a kernel? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60454/new/ https://reviews.llvm.org/D60454 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits