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/CGCleanup.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/CGCleanup.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGCleanup.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp index 437ab7dd464..e8bcf0a3ac5 100644 --- a/clang/lib/CodeGen/CGCleanup.cpp +++ b/clang/lib/CodeGen/CGCleanup.cpp @@ -51,8 +51,7 @@ DominatingValue<RValue>::saved_type::save(CodeGenFunction &CGF, RValue rv) { if (rv.isComplex()) { CodeGenFunction::ComplexPairTy V = rv.getComplexVal(); llvm::Type *ComplexTy = - llvm::StructType::get(V.first->getType(), V.second->getType(), - (void*) nullptr); + llvm::StructType::get(V.first->getType(), V.second->getType()); Address addr = CGF.CreateDefaultAlignTempAlloca(ComplexTy, "saved-complex"); CGF.Builder.CreateStore(V.first, CGF.Builder.CreateStructGEP(addr, 0, CharUnits())); |

