projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d54b4e6
)
The resume instruction may throw. Return 'true' in this case.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Aug 2011 21:15:50 +0000
(21:15 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Aug 2011 21:15:50 +0000
(21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137757
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Instruction.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Instruction.cpp
b/lib/VMCore/Instruction.cpp
index 9e55a083db0cc5f08cb839acd120e64f835836f7..863b098e8f8c8cd95cd0dbba79e2a4bd931d4b46 100644
(file)
--- a/
lib/VMCore/Instruction.cpp
+++ b/
lib/VMCore/Instruction.cpp
@@
-357,7
+357,7
@@
bool Instruction::mayWriteToMemory() const {
bool Instruction::mayThrow() const {
if (const CallInst *CI = dyn_cast<CallInst>(this))
return !CI->doesNotThrow();
- return
false
;
+ return
isa<ResumeInst>(this)
;
}
/// isAssociative - Return true if the instruction is associative: