]> granicus.if.org Git - clang/commit
PR19729: Delete a bunch of bogus code in Sema::FindAllocationOverload. This
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 May 2014 19:56:21 +0000 (19:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 May 2014 19:56:21 +0000 (19:56 +0000)
commitf579a0e9261498db6cd09f0b8a438c6b30bc3218
treecf2f753d0bcacfaad866ba1decaa0ece1dd490f3
parent45f70c28cd7f507416aa3753f451f9e84531cd4b
PR19729: Delete a bunch of bogus code in Sema::FindAllocationOverload. This
caused us to perform copy-initialization for the parameters of an allocation
function called by a new-expression multiple times, resulting in us rejecting
allocations that passed non-copyable parameters (and much worse things in
MSVC compat mode, where we potentially called this function multiple times).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208724 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/cxx0x-initializer-constructor.cpp
test/SemaCXX/microsoft-new-delete.cpp