projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b16b6d5
)
Fix incorrect assertion in AVRFrameLowering.cpp
author
Dylan McKay
<dylanmckay34@gmail.com>
Sat, 8 Oct 2016 01:10:36 +0000
(
01:10
+0000)
committer
Dylan McKay
<dylanmckay34@gmail.com>
Sat, 8 Oct 2016 01:10:36 +0000
(
01:10
+0000)
This wasn't looking at the right instruction, and would always fail.
llvm-svn: 283640
llvm/lib/Target/AVR/AVRFrameLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRFrameLowering.cpp
b/llvm/lib/Target/AVR/AVRFrameLowering.cpp
index
dd70078
..
ab95be8
100644
(file)
--- a/
llvm/lib/Target/AVR/AVRFrameLowering.cpp
+++ b/
llvm/lib/Target/AVR/AVRFrameLowering.cpp
@@
-145,8
+145,9
@@
void AVRFrameLowering::emitEpilogue(MachineFunction &MF,
}
MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
- assert(MBBI
== MBB.end
() &&
+ assert(MBBI
->getDesc().isReturn
() &&
"Can only insert epilog into returning blocks");
+
DebugLoc DL = MBBI->getDebugLoc();
const MachineFrameInfo &MFI = MF.getFrameInfo();
const AVRMachineFunctionInfo *AFI = MF.getInfo<AVRMachineFunctionInfo>();