[PATCH] D53023: Prototype OpenCL BIFs using Tablegen

Andrew Savonichev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 26 08:42:26 PDT 2018


asavonic added inline comments.


================
Comment at: lib/Sema/SemaExpr.cpp:2247
   if (R.empty() && HasTrailingLParen && II && !getLangOpts().CPlusPlus) {
-    NamedDecl *D = ImplicitlyDefineFunction(NameLoc, *II, S);
-    if (D) R.addDecl(D);
+    if (getLangOpts().OpenCL) {
+      auto Index =
----------------
It will be good to have a driver option to enable this feature.


https://reviews.llvm.org/D53023





More information about the cfe-commits mailing list