[PATCH] D46651: [OpenCL] Support placement new/delete in Sema

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 9 11:40:41 PDT 2018


rjmccall added inline comments.


================
Comment at: lib/Sema/SemaExprCXX.cpp:2030
+      }
+    }
 
----------------
I think a better interpretation of this rule would be to just error on attempts to use the standard non-placement operator new/delete instead of trying to outlaw the operator declarations.  For example, I don't know why a user-defined non-global operator new would be problematic.


Repository:
  rC Clang

https://reviews.llvm.org/D46651





More information about the cfe-commits mailing list