]> granicus.if.org Git - clang/commit
When instantiating a C++ "new" expression, don't fake source locations
authorDouglas Gregor <dgregor@apple.com>
Mon, 27 Jun 2011 16:55:54 +0000 (16:55 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 27 Jun 2011 16:55:54 +0000 (16:55 +0000)
commitd0e8b782787638bcc9c57022e47c28d3529f02d4
tree6d6ca8122f8cc5edd03276009fcd202574bcfc9f
parent6628969c3e3886b68d8a0051df7e222aa50ef118
When instantiating a C++ "new" expression, don't fake source locations
for the '(' and ')' around the initializer unless we actually have an
initializer. Fixes PR10197, an issue where we were value-initializing
rather than default-initializing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133913 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/TreeTransform.h
test/CodeGenCXX/new.cpp