mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Fix PR7096. When a block containing multiple defs is tail duplicated, the
SSAUpdater for the value from the first def may see uses of undefined values, because the later defs will not have been updated yet. llvm-svn: 103407
This commit is contained in:
parent
61289abcda
commit
776d3dcfb4
@ -329,7 +329,7 @@ public:
|
||||
/// InstrIsPHI - Check if an instruction is a PHI.
|
||||
///
|
||||
static MachineInstr *InstrIsPHI(MachineInstr *I) {
|
||||
if (I->isPHI())
|
||||
if (I && I->isPHI())
|
||||
return I;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user