OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f9d8ff
)
Skip the insertion iterator past the landingpad instruction if there.
author
Bill Wendling
<isanbard@gmail.com>
Mon, 15 Aug 2011 18:21:07 +0000
(18:21 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Mon, 15 Aug 2011 18:21:07 +0000
(18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137626
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CodeGenPrepare.cpp
b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index
17beeb5
..
c274b15
100644
(file)
--- a/
lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/
lib/Transforms/Scalar/CodeGenPrepare.cpp
@@
-411,6
+411,7
@@
static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){
if (!InsertedCast) {
BasicBlock::iterator InsertPt = UserBB->getFirstNonPHI();
+ if (isa<LandingPadInst>(InsertPt)) ++InsertPt;
InsertedCast =
CastInst::Create(CI->getOpcode(), CI->getOperand(0), CI->getType(), "",