diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-28 18:37:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-28 18:37:06 +0000 |
commit | a3b2121ccf4f048640b4d79689b0e4a3906143f2 (patch) | |
tree | 2c4c484a5c53ce53693920bc11389559307c2446 | |
parent | 21a1401413f074ffb216f74f94c5bc7a0e6cc1e1 (diff) | |
download | external_llvm-a3b2121ccf4f048640b4d79689b0e4a3906143f2.zip external_llvm-a3b2121ccf4f048640b4d79689b0e4a3906143f2.tar.gz external_llvm-a3b2121ccf4f048640b4d79689b0e4a3906143f2.tar.bz2 |
Fix off-by one in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151644 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 38467c5..348dc5d 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -1402,7 +1402,7 @@ ExpandShiftWithKnownAmountBit(SDNode *N, SDValue &Lo, SDValue &Hi) { if ((KnownZero & HighBitMask) == HighBitMask) { // Calculate 31-x. 31 is used instead of 32 to avoid creating an undefined // shift if x is zero. We can use XOR here because x is known to be smaller - // than 31. + // than 32. SDValue Amt2 = DAG.getNode(ISD::XOR, dl, ShTy, Amt, DAG.getConstant(NVTBits-1, ShTy)); |