forked from OSchip/llvm-project
Silence a warning.
Despite changing the order of evaluation, this doesn't actually change the meaning of the statement. llvm-svn: 60177
This commit is contained in:
parent
50343cd2fe
commit
2c96bdd8d6
|
@ -397,7 +397,7 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
|
||||||
// Determine AntiDepReg's register class, if it is live and is
|
// Determine AntiDepReg's register class, if it is live and is
|
||||||
// consistently used within a single class.
|
// consistently used within a single class.
|
||||||
const TargetRegisterClass *RC = AntiDepReg != 0 ? Classes[AntiDepReg] : 0;
|
const TargetRegisterClass *RC = AntiDepReg != 0 ? Classes[AntiDepReg] : 0;
|
||||||
assert(AntiDepReg == 0 || RC != NULL &&
|
assert((AntiDepReg == 0 || RC != NULL) &&
|
||||||
"Register should be live if it's causing an anti-dependence!");
|
"Register should be live if it's causing an anti-dependence!");
|
||||||
if (RC == reinterpret_cast<TargetRegisterClass *>(-1))
|
if (RC == reinterpret_cast<TargetRegisterClass *>(-1))
|
||||||
AntiDepReg = 0;
|
AntiDepReg = 0;
|
||||||
|
|
Loading…
Reference in New Issue