mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-06 14:57:41 +00:00
Tracing or debug-printing a newly formed instruction should not crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
18801ecd48
commit
62e0590c0e
@ -386,6 +386,7 @@ static SlotTracker *createSlotTracker(const Value *V) {
|
|||||||
return new SlotTracker(FA->getParent());
|
return new SlotTracker(FA->getParent());
|
||||||
|
|
||||||
if (const Instruction *I = dyn_cast<Instruction>(V))
|
if (const Instruction *I = dyn_cast<Instruction>(V))
|
||||||
|
if (I->getParent())
|
||||||
return new SlotTracker(I->getParent()->getParent());
|
return new SlotTracker(I->getParent()->getParent());
|
||||||
|
|
||||||
if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
|
if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
|
||||||
|
Loading…
Reference in New Issue
Block a user