summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-05-15 10:23:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-05-15 10:23:23 +0000
commit75142e6bfc4c61856ef2ede261be82efe27ab403 (patch)
tree2b696f4379371d305a2b8c1f76d81ecdfecc1e90 /llvm/lib/CodeGen/RegAllocFast.cpp
parent9e688cbcc98fd9204967807b783d45b3c676c57f (diff)
downloadbcm5719-llvm-75142e6bfc4c61856ef2ede261be82efe27ab403.tar.gz
bcm5719-llvm-75142e6bfc4c61856ef2ede261be82efe27ab403.zip
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. llvm-svn: 103869
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 349bc2ccc2c..be2613b4eb8 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud