diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2023-01-13 01:12:07 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2023-01-13 01:18:56 +0300 |
commit | fbcefff9d0a3f5e97270ef8e7b8e0f2afc33dc1c (patch) | |
tree | dc0456f81b671ab1f775c02910382e890a7e82e2 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 80246b22a62140fd30131bee571d7fd84d2e2522 (diff) | |
download | llvm-fbcefff9d0a3f5e97270ef8e7b8e0f2afc33dc1c.zip llvm-fbcefff9d0a3f5e97270ef8e7b8e0f2afc33dc1c.tar.gz llvm-fbcefff9d0a3f5e97270ef8e7b8e0f2afc33dc1c.tar.bz2 |
Revert "[SimplifyCFG] When eliminating `unreachable` landing pads, mark `call`s as `nounwind`"
The bool is in the wrong place and might get implicitly converted from
the previous second argument - a pointer. Thinking about it more,
it's not really the best place for that functionality anyways,
only a single caller needs that.
This reverts commit 3c5b1f2d94d021005ce3769a4402d4a4ae843989.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 1ce412a..870dc2b 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -5184,7 +5184,7 @@ bool SimplifyCFGOpt::simplifyUnreachable(UnreachableInst *UI) { DTU->applyUpdates(Updates); Updates.clear(); } - removeUnwindEdge(TI->getParent(), /*WouldUnwindBeUB=*/true, DTU); + removeUnwindEdge(TI->getParent(), DTU); Changed = true; } } else if (auto *CSI = dyn_cast<CatchSwitchInst>(TI)) { |