diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 89c1a2d95889..7373ed6ea6e7 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -1868,7 +1868,7 @@ llvm::Value *CodeGenFunction::EmitSEHAbnormalTermination() { } void CodeGenFunction::EnterSEHTryStmt(const SEHTryStmt &S, SEHFinallyInfo &FI) { - if (SEHFinallyStmt *Finally = S.getFinallyHandler()) { + if (S.getFinallyHandler()) { // Push a cleanup for __finally blocks. EHStack.pushCleanup(NormalAndEHCleanup, &FI); return;