]> granicus.if.org Git - clang/commitdiff
[CFG] Squash an unused variable introduced in r324668.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 9 Feb 2018 01:43:26 +0000 (01:43 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 9 Feb 2018 01:43:26 +0000 (01:43 +0000)
Found by -Werror buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324697 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 63f1d724eb7a4eb17c6664f2a7e51395a126cfe3..a80220baffcb7cfdf77615e7a2e449380159ee93 100644 (file)
@@ -1153,7 +1153,7 @@ void CFGBuilder::EnterConstructionContextIfNecessary(Stmt *Trigger,
     return;
   if (!Child)
     return;
-  if (auto *Constructor = dyn_cast<CXXConstructExpr>(Child)) {
+  if (isa<CXXConstructExpr>(Child)) {
     assert(CurrentConstructionContext.isNull() &&
            "Already within a construction context!");
     CurrentConstructionContext = ConstructionContext(Trigger);