[llvm-branch-commits] [llvm] ff3749f - [NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning
Roman Lebedev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 24 10:27:24 PST 2020
Author: Roman Lebedev
Date: 2020-12-24T21:20:46+03:00
New Revision: ff3749fc7933a6f45b77739380e434060ca7693d
URL: https://github.com/llvm/llvm-project/commit/ff3749fc7933a6f45b77739380e434060ca7693d
DIFF: https://github.com/llvm/llvm-project/commit/ff3749fc7933a6f45b77739380e434060ca7693d.diff
LOG: [NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning
Thanks to Luke Benes for pointing it out.
Added:
Modified:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 777ec44cd0bd..67e0d2ac9cd7 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<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});
More information about the llvm-branch-commits
mailing list