diff options
author | Serge Guelton <sguelton@quarkslab.com> | 2017-05-09 19:31:30 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@quarkslab.com> | 2017-05-09 19:31:30 +0000 |
commit | 1d993270b30e6e46fdabcc8e414900e46a325d84 (patch) | |
tree | a912b4b1e6f88e67a7a0d78694d3f2d008e058e4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e38003f8399531b00e9fc8e9c6cfe311bc3ad4fb (diff) | |
download | bcm5719-llvm-1d993270b30e6e46fdabcc8e414900e46a325d84.tar.gz bcm5719-llvm-1d993270b30e6e46fdabcc8e414900e46a325d84.zip |
Suppress all uses of LLVM_END_WITH_NULL. NFC.
Use variadic templates instead of relying on <cstdarg> + sentinel.
This enforces better type checking and makes code more readable.
Differential revision: https://reviews.llvm.org/D32550
llvm-svn: 302572
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 ff26d80fe2b..a0254797ea4 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -751,7 +751,7 @@ void CodeGenModule::EmitCtorList(CtorList &Fns, const char *GlobalName) { // Get the type of a ctor entry, { i32, void ()*, i8* }. llvm::StructType *CtorStructTy = llvm::StructType::get( - Int32Ty, llvm::PointerType::getUnqual(CtorFTy), VoidPtrTy, nullptr); + Int32Ty, llvm::PointerType::getUnqual(CtorFTy), VoidPtrTy); // Construct the constructor and destructor arrays. ConstantInitBuilder builder(*this); |