[NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 24 Dec 2020 18:15:13 +0000 (21:15 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 24 Dec 2020 18:20:46 +0000 (21:20 +0300)
Thanks to Luke Benes for pointing it out.

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

index 777ec44..67e0d2a 100644 (file)
@@ -4632,6 +4632,7 @@ bool SimplifyCFGOpt::simplifyUnreachable(UnreachableInst *UI) {
         Changed = true;
       }
     } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) {
+      (void)CRI;
       assert(CRI->hasUnwindDest() && CRI->getUnwindDest() == BB &&
              "Expected to always have an unwind to BB.");
       Updates.push_back({DominatorTree::Delete, Predecessor, BB});