aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-18 09:59:50 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-18 09:59:50 +0000
commit2b0e8990ab33ec2dad21286d3ce01dbb4bbe63c1 (patch)
treebb69bcade78ca0c84fd5e621d5d07feeeb094dc0 /lib/Transforms/Scalar/SimplifyCFG.cpp
parentf311f53a0fbe6063d32ad0767e005c2727feb365 (diff)
Rename isNoReturn to doesNotReturn, and isNoUnwind to
doesNotThrow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r--lib/Transforms/Scalar/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp
index 1d34d316a1..6d24404e68 100644
--- a/lib/Transforms/Scalar/SimplifyCFG.cpp
+++ b/lib/Transforms/Scalar/SimplifyCFG.cpp
@@ -111,7 +111,7 @@ static bool MarkAliveBlocks(BasicBlock *BB,
// canonicalizes unreachable insts into stores to null or undef.
for (BasicBlock::iterator BBI = BB->begin(), E = BB->end(); BBI != E;++BBI){
if (CallInst *CI = dyn_cast<CallInst>(BBI)) {
- if (CI->isNoReturn()) {
+ if (CI->doesNotReturn()) {
// If we found a call to a no-return function, insert an unreachable
// instruction after it. Make sure there isn't *already* one there
// though.
@@ -135,7 +135,7 @@ static bool MarkAliveBlocks(BasicBlock *BB,
// Turn invokes that call 'nounwind' functions into ordinary calls.
if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator()))
- if (II->isNoUnwind()) {
+ if (II->doesNotThrow()) {
ChangeToCall(II);
Changed = true;
}