diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-05-15 10:23:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-05-15 10:23:23 +0000 |
commit | 2c13ab2bb840295ffba5f28bb1df7aa0b8d9736e (patch) | |
tree | b06fa610741911b3a8f977d16a43a40e90a89930 /lib/CodeGen/RegAllocFast.cpp | |
parent | 7189fd03fa66642b58b1e88be385bedeff0ac91d (diff) |
Fix an GCC warning that seems to have actually caught a bug (!!!) in
a condition's grouping. Every other use of Allocatable.test(Hint) groups it the
same way as it is indented, so move the parentheses to agree with that
grouping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocFast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp index 349bc2ccc2..be2613b4eb 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. |