mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-09 10:29:25 +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,7 +386,8 @@ 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))
|
||||||
return new SlotTracker(I->getParent()->getParent());
|
if (I->getParent())
|
||||||
|
return new SlotTracker(I->getParent()->getParent());
|
||||||
|
|
||||||
if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
|
if (const BasicBlock *BB = dyn_cast<BasicBlock>(V))
|
||||||
return new SlotTracker(BB->getParent());
|
return new SlotTracker(BB->getParent());
|
||||||
|
Loading…
Reference in New Issue
Block a user