Fix `-Wunused-variable` warning. NFC.

This commit is contained in:
Michael Liao 2020-03-20 09:29:06 -04:00
parent 7f764fa18f
commit a4edea29be
1 changed files with 1 additions and 2 deletions

View File

@ -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());