summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.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
commit3353ed09ace5affb4448ea387dc676734ed94e10 (patch)
tree08a6c94a8d9dd23526b51a788d6a0ada0f46ef60 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent30291f4a3014687be84e33fa0bf86fc8b2dfeb39 (diff)
downloadbcm5719-llvm-3353ed09ace5affb4448ea387dc676734ed94e10.tar.gz
bcm5719-llvm-3353ed09ace5affb4448ea387dc676734ed94e10.zip
Rename isNoReturn to doesNotReturn, and isNoUnwind to
doesNotThrow. llvm-svn: 45160
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index acda89bfe0b..d64afbbda1f 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -8039,7 +8039,7 @@ Instruction *InstCombiner::visitCallSite(CallSite CS) {
}
}
- if (isa<InlineAsm>(Callee) && !CS.isNoUnwind()) {
+ if (isa<InlineAsm>(Callee) && !CS.paramHasAttr(0, ParamAttr::NoUnwind)) {
// Inline asm calls cannot throw - mark them 'nounwind'.
const ParamAttrsList *PAL = CS.getParamAttrs();
uint16_t RAttributes = PAL ? PAL->getParamAttrs(0) : 0;
OpenPOWER on IntegriCloud