mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
Update assertion to allow extra case
llvm-svn: 532
This commit is contained in:
parent
52084c119f
commit
fc53415334
@ -102,7 +102,8 @@ public:
|
||||
return opType;
|
||||
}
|
||||
inline Value* getVRegValue () const {
|
||||
assert(opType == MO_VirtualRegister || opType == MO_CCRegister);
|
||||
assert(opType == MO_VirtualRegister || opType == MO_CCRegister ||
|
||||
opType == MO_PCRelativeDisp);
|
||||
return value;
|
||||
}
|
||||
inline unsigned int getMachineRegNum() const {
|
||||
@ -377,8 +378,8 @@ public:
|
||||
// and inlining it avoids a serious circurality in link order.
|
||||
inline void dropAllReferences() {
|
||||
for (unsigned i=0, N=tempVec.size(); i < N; i++)
|
||||
if (tempVec[i]->getValueType() == Value::InstructionVal)
|
||||
((Instruction*) tempVec[i])->dropAllReferences();
|
||||
if (Instruction *I = tempVec[i]->castInstruction())
|
||||
I->dropAllReferences();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user