diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-17 05:12:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-17 05:12:35 +0000 |
commit | f8adcdc436c100f9103b6e2831819eac6e39a877 (patch) | |
tree | 7f4a8764be0f2870b09b79760c62bfaabaeed7c7 /clang/lib/CodeGen/CGObjC.cpp | |
parent | 68c89c24801e2d1a5e4aea78b264c9bc6dc88b87 (diff) | |
download | bcm5719-llvm-f8adcdc436c100f9103b6e2831819eac6e39a877.tar.gz bcm5719-llvm-f8adcdc436c100f9103b6e2831819eac6e39a877.zip |
Track the difference between
-- a constructor list initialization that unpacked an initializer list into
constructor arguments and
-- a list initialization that created as std::initializer_list and passed it
as the first argument to a constructor
in the AST. Use this flag while instantiating templates to provide the right
semantics for the resulting initialization.
llvm-svn: 213224
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjC.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 8c54bba4c7c..8ca80808e00 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -3021,6 +3021,7 @@ CodeGenFunction::GenerateObjCAtomicGetterCopyHelperFunction( ConstructorArgs, CXXConstExpr->hadMultipleCandidates(), CXXConstExpr->isListInitialization(), + CXXConstExpr->isStdInitListInitialization(), CXXConstExpr->requiresZeroInitialization(), CXXConstExpr->getConstructionKind(), SourceRange()); |