[clang] a4edea2 - Fix `-Wunused-variable` warning. NFC.
Michael Liao via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 20 06:32:17 PDT 2020
Author: Michael Liao
Date: 2020-03-20T09:31:58-04:00
New Revision: a4edea29be2a77a8c8c237d75563a09a61791442
URL: https://github.com/llvm/llvm-project/commit/a4edea29be2a77a8c8c237d75563a09a61791442
DIFF: https://github.com/llvm/llvm-project/commit/a4edea29be2a77a8c8c237d75563a09a61791442.diff
LOG: Fix `-Wunused-variable` warning. NFC.
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index eaded8e92d7c..137aae883aa6 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -15490,8 +15490,7 @@ static void RemoveNestedImmediateInvocation(
/// nowhere in the expression being transformed therefore will not be rebuilt.
/// Setting AllowSkippingFirstCXXConstructExpr to false will prevent from
/// skipping the first CXXConstructExpr.
- if (auto *OldExpr =
- dyn_cast<CXXConstructExpr>(It->getPointer()->IgnoreImplicit()))
+ if (isa<CXXConstructExpr>(It->getPointer()->IgnoreImplicit()))
Transformer.AllowSkippingFirstCXXConstructExpr = false;
ExprResult Res = Transformer.TransformExpr(It->getPointer()->getSubExpr());
More information about the cfe-commits
mailing list