mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Follow up to 90488. Turn a check into an assertion.
llvm-svn: 90815
This commit is contained in:
parent
d9047c44e4
commit
fe32f969cd
@ -1064,8 +1064,8 @@ bool MachineInstr::isInvariantLoad(AliasAnalysis *AA) const {
|
||||
unsigned MachineInstr::isConstantValuePHI() const {
|
||||
if (getOpcode() != TargetInstrInfo::PHI)
|
||||
return 0;
|
||||
if (getNumOperands() <= 1)
|
||||
return 0;
|
||||
assert(getNumOperands() >= 3 &&
|
||||
"It's illegal to have a PHI without source operands");
|
||||
|
||||
unsigned Reg = getOperand(1).getReg();
|
||||
for (unsigned i = 3, e = getNumOperands(); i < e; i += 2)
|
||||
|
Loading…
Reference in New Issue
Block a user