From 2c13ab2bb840295ffba5f28bb1df7aa0b8d9736e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 15 May 2010 10:23:23 +0000 Subject: [PATCH] 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 --- lib/CodeGen/RegAllocFast.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.