From ff3749fc7933a6f45b77739380e434060ca7693d Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 24 Dec 2020 21:15:13 +0300 Subject: [PATCH] [NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning Thanks to Luke Benes for pointing it out. --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 777ec44..67e0d2a 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -4632,6 +4632,7 @@ bool SimplifyCFGOpt::simplifyUnreachable(UnreachableInst *UI) { Changed = true; } } else if (auto *CRI = dyn_cast(TI)) { + (void)CRI; assert(CRI->hasUnwindDest() && CRI->getUnwindDest() == BB && "Expected to always have an unwind to BB."); Updates.push_back({DominatorTree::Delete, Predecessor, BB}); -- 2.7.4