From: Artem Dergachev Date: Fri, 9 Feb 2018 01:43:26 +0000 (+0000) Subject: [CFG] Squash an unused variable introduced in r324668. X-Git-Tag: llvmorg-7.0.0-rc1~13259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=675d6f4df2d4a0f10752354f61c0b4e50c3f7d65;p=platform%2Fupstream%2Fllvm.git [CFG] Squash an unused variable introduced in r324668. Found by -Werror buildbot. llvm-svn: 324697 --- diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index 63f1d72..a80220b 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/lib/Analysis/CFG.cpp @@ -1153,7 +1153,7 @@ void CFGBuilder::EnterConstructionContextIfNecessary(Stmt *Trigger, return; if (!Child) return; - if (auto *Constructor = dyn_cast(Child)) { + if (isa(Child)) { assert(CurrentConstructionContext.isNull() && "Already within a construction context!"); CurrentConstructionContext = ConstructionContext(Trigger);