projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e457896
)
[NFC] SimplifyCFGOpt::simplifyUnreachable(): pacify unused variable warning
author
Roman Lebedev
<lebedev.ri@gmail.com>
Thu, 24 Dec 2020 18:15:13 +0000
(21:15 +0300)
committer
Roman 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
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index
777ec44
..
67e0d2a
100644
(file)
--- 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});