[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.

llvm-svn: 324697

clang/lib/Analysis/CFG.cpp

index 63f1d72..a80220b 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);