diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-10-06 23:40:43 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-10-06 23:40:43 +0000 |
commit | dcfba33481e0c52b07fe2d72833c229840e4cfd5 (patch) | |
tree | c3f144ed0bf2b992128e0944c45ef45f467c5de8 /clang/lib/CodeGen/CGException.cpp | |
parent | 7735a6d07ac83620379273aa19566de172cf06c3 (diff) | |
download | bcm5719-llvm-dcfba33481e0c52b07fe2d72833c229840e4cfd5.tar.gz bcm5719-llvm-dcfba33481e0c52b07fe2d72833c229840e4cfd5.zip |
Fix Clang-tidy modernize-use-nullptr warnings in source directories; other minor cleanups
Patch by Eugene Zelenko!
Differential Revision: http://reviews.llvm.org/D13406
llvm-svn: 249484
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 85204f4c9af..ebeb7270852 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1,4 +1,4 @@ -//===--- CGException.cpp - Emit LLVM Code for C++ exceptions --------------===// +//===--- CGException.cpp - Emit LLVM Code for C++ exceptions ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -346,7 +346,7 @@ namespace { CGF.EmitNounwindRuntimeCall(getFreeExceptionFn(CGF.CGM), exn); } }; -} +} // end anonymous namespace // Emits an exception expression into the given location. This // differs from EmitAnyExprToMem only in that, if a final copy-ctor @@ -1191,7 +1191,7 @@ namespace { CGF.EnsureInsertPoint(); } }; -} +} // end anonymous namespace /// Enters a finally block for an implementation using zero-cost /// exceptions. This is mostly general, but hard-codes some @@ -1313,7 +1313,7 @@ llvm::BasicBlock *CodeGenFunction::getTerminateLandingPad() { llvm::StructType::get(Int8PtrTy, Int32Ty, nullptr), 0); LPadInst->addClause(getCatchAllValue(*this)); - llvm::Value *Exn = 0; + llvm::Value *Exn = nullptr; if (getLangOpts().CPlusPlus) Exn = Builder.CreateExtractValue(LPadInst, 0); llvm::CallInst *terminateCall = @@ -1341,7 +1341,7 @@ llvm::BasicBlock *CodeGenFunction::getTerminateHandler() { EHPersonality::get(*this).isMSVCPersonality()) { Builder.CreateTerminatePad(/*UnwindBB=*/nullptr, CGM.getTerminateFn()); } else { - llvm::Value *Exn = 0; + llvm::Value *Exn = nullptr; if (getLangOpts().CPlusPlus) Exn = getExceptionFromSlot(); llvm::CallInst *terminateCall = @@ -1465,7 +1465,7 @@ struct PerformSEHFinally final : EHScopeStack::Cleanup { CleanupEndBB); } }; -} +} // end anonymous namespace namespace { /// Find all local variable captures in the statement. @@ -1524,7 +1524,7 @@ struct CaptureFinder : ConstStmtVisitor<CaptureFinder> { } } }; -} +} // end anonymous namespace Address CodeGenFunction::recoverAddrOfEscapedLocal( CodeGenFunction &ParentCGF, Address ParentVar, llvm::Value *ParentFP) { |