diff options
author | John McCall <rjmccall@apple.com> | 2016-11-28 22:18:30 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2016-11-28 22:18:30 +0000 |
commit | f1788639c5f62beedd11adc40c144afff46b2a45 (patch) | |
tree | 381f5a6bbde660d76703d09b6d8b6af650110d2b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 23c9dc65859030a7c627edb78fab44b50e8c9571 (diff) | |
download | bcm5719-llvm-f1788639c5f62beedd11adc40c144afff46b2a45.tar.gz bcm5719-llvm-f1788639c5f62beedd11adc40c144afff46b2a45.zip |
Hide the result of building a constant initializer. NFC.
llvm-svn: 288080
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 0502709389b..9ea11b8e1c4 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -753,7 +753,7 @@ void CodeGenModule::EmitCtorList(CtorList &Fns, const char *GlobalName) { ctor.add(llvm::ConstantExpr::getBitCast(I.AssociatedData, VoidPtrTy)); else ctor.addNullPointer(VoidPtrTy); - ctors.add(ctor.finish()); + ctor.finishAndAddTo(ctors); } auto list = |