]> granicus.if.org Git - clang/commit
When rebuilding an InitListExpr, don't give it a type.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 12 Jan 2018 22:21:33 +0000 (22:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 12 Jan 2018 22:21:33 +0000 (22:21 +0000)
commit124ae5399e558e14de172da727bd75c1372750b4
treef49d921065a4b3da5ae7b44f35d82d0af87f9166
parentbaf72beaf06fc78895fcbcfc1143053bb467dd1d
When rebuilding an InitListExpr, don't give it a type.

InitListExprs without types (well, with type 'void') represent not-yet-analyzed
initializer lists; InitListExpr with types fool Sema into thinking they don't
need further analysis in some cases (particularly C++17 copy omission).

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