Tighten up the set of operator new/operator delete calls we're permitted to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 21 Jul 2013 23:12:18 +0000 (23:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 21 Jul 2013 23:12:18 +0000 (23:12 +0000)
commit8d0dc31dcada7f8002022b02a1cee471494e530b
tree03cb4aaeb4dc0f66bb8fde6afa282a87c40d41fd
parent70523c79260864b64c95bb2b31746eacbf2e06bd
Tighten up the set of operator new/operator delete calls we're permitted to
optimize, to follow the permissions granted in N3664. Under those rules, only
calls generated by new-expressions and delete-expressions are permitted to be
optimized, and direct calls to ::operator new and ::operator delete must be
treated as normal calls.

llvm-svn: 186799
clang/include/clang/AST/Decl.h
clang/lib/AST/Decl.cpp
clang/lib/CodeGen/CGExprCXX.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCXX/new.cpp
clang/www/cxx_status.html