aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-10 19:09:40 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-10 19:09:40 +0000
commitcbb8badce8838ece47cb806a0399c77d76a7e11b (patch)
tree778a2f778908ed6a3d1f6aee778559a87954d383 /lib/Transforms/Scalar/SimplifyCFG.cpp
parent1eff70451fbb079c1d5b8f45ff8c8a2b8f74d7ba (diff)
Make PruneEH update the nounwind/noreturn attributes
on functions as it calculates them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r--lib/Transforms/Scalar/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp
index eb1ed4e60d..1d34d316a1 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->paramHasAttr(0, ParamAttr::NoReturn)) {
+ if (CI->isNoReturn()) {
// 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.