mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 23:50:50 +00:00
Make sure we don't dereference the .end() of the container.
llvm-svn: 65211
This commit is contained in:
parent
3adae91c70
commit
96430050a5
@ -728,7 +728,8 @@ void X86RegisterInfo::emitPrologue(MachineFunction &MF) const {
|
||||
bool needsFrameMoves = (MMI && MMI->hasDebugInfo()) ||
|
||||
!Fn->doesNotThrow() ||
|
||||
UnwindTablesMandatory;
|
||||
DebugLoc DL = MBBI->getDebugLoc();
|
||||
DebugLoc DL = (MBBI != MBB.end()) ? MBBI->getDebugLoc() :
|
||||
DebugLoc::getUnknownLoc();
|
||||
|
||||
// Prepare for frame info.
|
||||
unsigned FrameLabelId = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user