From: Jeff Cohen Date: Fri, 19 Aug 2005 04:39:48 +0000 (+0000) Subject: Fix VC++ precedence warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a92b7c36e97c22bf528706bfceb568ff512de751;p=oota-llvm.git Fix VC++ precedence warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22902 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 7f0725efaab..8fb6070e94d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1171,7 +1171,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, if (Opcode == ISD::SRA) { // If the sign bit is known to be zero, switch this to a SRL. if (MaskedValueIsZero(N1, - 1ULL << MVT::getSizeInBits(N1.getValueType())-1, + 1ULL << (MVT::getSizeInBits(N1.getValueType())-1), TLI)) return getNode(ISD::SRL, N1.getValueType(), N1, N2); } else {