mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
CodeGen: silence a warning
GCC 4.8.2 objects to the tautological condition in the assert as the unsigned value is guaranteed to be >= 0. Simplify the assertion by dropping the tautological condition. llvm-svn: 214671
This commit is contained in:
parent
70baef2f02
commit
189689a302
@ -144,8 +144,7 @@ MachineCombiner::getDepth(SmallVectorImpl<MachineInstr *> &InsInstrs,
|
||||
InstrIdxForVirtReg.find(MO.getReg());
|
||||
if (II != InstrIdxForVirtReg.end()) {
|
||||
// Operand is new virtual register not in trace
|
||||
assert(II->second >= 0 && II->second < InstrDepth.size() &&
|
||||
"Bad Index");
|
||||
assert(II->second < InstrDepth.size() && "Bad Index");
|
||||
MachineInstr *DefInstr = InsInstrs[II->second];
|
||||
assert(DefInstr &&
|
||||
"There must be a definition for a new virtual register");
|
||||
|
Loading…
Reference in New Issue
Block a user