diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index 349bc2ccc2c..be2613b4eb8 100644 --- a/lib/CodeGen/RegAllocFast.cpp +++ b/lib/CodeGen/RegAllocFast.cpp @@ -416,8 +416,8 @@ RAFast::LiveRegMap::iterator RAFast::allocVirtReg(MachineBasicBlock &MBB, // Ignore invalid hints. if (Hint && (!TargetRegisterInfo::isPhysicalRegister(Hint) || - !RC->contains(Hint) || UsedInInstr.test(Hint)) || - !Allocatable.test(Hint)) + !RC->contains(Hint) || UsedInInstr.test(Hint) || + !Allocatable.test(Hint))) Hint = 0; // If there is no hint, peek at the first use of this register.