diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-10 19:09:40 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-10 19:09:40 +0000 |
commit | 9f76be61d1b6bc575036c747c64454f8f10370e1 (patch) | |
tree | 74539cd52e5f3a3aa84d1084345e61c356462dab /llvm/lib/Transforms/Scalar/SimplifyCFG.cpp | |
parent | 456078d50d94e39434173b43e2cc78195cf3a4ac (diff) | |
download | bcm5719-llvm-9f76be61d1b6bc575036c747c64454f8f10370e1.tar.gz bcm5719-llvm-9f76be61d1b6bc575036c747c64454f8f10370e1.zip |
Make PruneEH update the nounwind/noreturn attributes
on functions as it calculates them.
llvm-svn: 44802
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp index eb1ed4e60d3..1d34d316a1d 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/llvm/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. |