r324697 - [CFG] Squash an unused variable introduced in r324668.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 17:43:26 PST 2018


Author: dergachev
Date: Thu Feb  8 17:43:26 2018
New Revision: 324697

URL: http://llvm.org/viewvc/llvm-project?rev=324697&view=rev
Log:
[CFG] Squash an unused variable introduced in r324668.

Found by -Werror buildbot.

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=324697&r1=324696&r2=324697&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Thu Feb  8 17:43:26 2018
@@ -1153,7 +1153,7 @@ void CFGBuilder::EnterConstructionContex
     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);




More information about the cfe-commits mailing list