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:
3e5d5c5
)
Make sure we don't insert instructions before a landingpad instruction.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 7 Nov 2011 19:38:34 +0000
(19:38 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 7 Nov 2011 19:38:34 +0000
(19:38 +0000)
<rdar://problem/
10405911
>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144000
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/DemoteRegToStack.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/DemoteRegToStack.cpp
b/lib/Transforms/Utils/DemoteRegToStack.cpp
index 8cc26492c292343ec674429eebd79007048f0947..3ef6b018bf89837bb56be300ab9d63eb6c5b03b3 100644
(file)
--- a/
lib/Transforms/Utils/DemoteRegToStack.cpp
+++ b/
lib/Transforms/Utils/DemoteRegToStack.cpp
@@
-97,8
+97,8
@@
AllocaInst* llvm::DemoteRegToStack(Instruction &I, bool VolatileLoads,
InsertPt = II.getNormalDest()->begin();
}
- for (; isa<PHINode>(InsertPt); ++InsertPt)
- /* empty */; // Don't insert before any PHI nodes.
+ for (; isa<PHINode>(InsertPt)
|| isa<LandingPadInst>(InsertPt)
; ++InsertPt)
+ /* empty */; // Don't insert before any PHI nodes
or landingpad instrs
.
new StoreInst(&I, Slot, InsertPt);
return Slot;