Author: Benjamin Kramer Date: 2021-05-18T11:09:12+02:00 New Revision: 3f3642a7631e28e44c248a46703e381d389958a1
URL: https://github.com/llvm/llvm-project/commit/3f3642a7631e28e44c248a46703e381d389958a1 DIFF: https://github.com/llvm/llvm-project/commit/3f3642a7631e28e44c248a46703e381d389958a1.diff LOG: [CodeGen] Avoid unused variable warning in Release builds. NFCI. Added: Modified: clang/lib/CodeGen/CGCleanup.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp index bfc8f4b724a8..b439204cf047 100644 --- a/clang/lib/CodeGen/CGCleanup.cpp +++ b/clang/lib/CodeGen/CGCleanup.cpp @@ -1318,8 +1318,7 @@ void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary, static void EmitSehScope(CodeGenFunction &CGF, llvm::FunctionCallee &SehCppScope) { llvm::BasicBlock *InvokeDest = CGF.getInvokeDest(); - llvm::BasicBlock *BB = CGF.Builder.GetInsertBlock(); - assert(BB && InvokeDest); + assert(CGF.Builder.GetInsertBlock() && InvokeDest); llvm::BasicBlock *Cont = CGF.createBasicBlock("invoke.cont"); SmallVector<llvm::OperandBundleDef, 1> BundleList = CGF.getBundlesForFunclet(SehCppScope.getCallee()); @@ -1368,4 +1367,4 @@ void CodeGenFunction::EmitSehTryScopeEnd() { llvm::FunctionCallee SehCppScope = CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.end"); EmitSehScope(*this, SehCppScope); -} \ No newline at end of file +} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits