summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9f76be61d1b6bc575036c747c64454f8f10370e1 (patch)
tree74539cd52e5f3a3aa84d1084345e61c356462dab /llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
parent456078d50d94e39434173b43e2cc78195cf3a4ac (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud