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:
1512548
)
PPCFrameLowering::emitEpilogue(): Avoid manipulating MBBI on iterator end.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 11 Sep 2015 08:20:56 +0000
(08:20 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 11 Sep 2015 08:20:56 +0000
(08:20 +0000)
It caused crash in MachineInstr::hasPropertyInBundle() since r247237.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247395
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCFrameLowering.cpp
b/lib/Target/PowerPC/PPCFrameLowering.cpp
index 60da158b058c518452ff0e682805e4af05005273..db49dfd8539f2533437e5c573300e17d0ca35f4d 100644
(file)
--- a/
lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/
lib/Target/PowerPC/PPCFrameLowering.cpp
@@
-999,7
+999,7
@@
void PPCFrameLowering::emitEpilogue(MachineFunction &MF,
PBPOffset = FFI->getObjectOffset(PBPIndex);
}
- bool IsReturnBlock =
MBBI->isReturn(
);
+ bool IsReturnBlock =
(MBBI != MBB.end() && MBBI->isReturn()
);
if (IsReturnBlock) {
unsigned RetOpcode = MBBI->getOpcode();