mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 05:17:36 +00:00
Fix crash when compiling twolf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
500597a1c3
commit
056063e264
@ -146,7 +146,8 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb,
|
||||
unsigned liveBlockIndex = it->first;
|
||||
MachineBasicBlock* liveBlock = it->second;
|
||||
if (liveBlockIndex < vi.AliveBlocks.size() &&
|
||||
vi.AliveBlocks[liveBlockIndex]) {
|
||||
vi.AliveBlocks[liveBlockIndex] &&
|
||||
!liveBlock->empty()) {
|
||||
unsigned start = getInstructionIndex(liveBlock->front());
|
||||
unsigned end = getInstructionIndex(liveBlock->back()) + 1;
|
||||
interval->addRange(start, end);
|
||||
|
Loading…
x
Reference in New Issue
Block a user