diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-13 22:13:53 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-13 22:13:53 +0000 |
commit | 002e5d0a170dadd5c307e0b00d8c7970835837e6 (patch) | |
tree | 326eae0ffb420bcc79c8b493fc353e67c30b3d65 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 8a97fddbc2c064e295ad5fb6269795bd904e1ed2 (diff) |
More APInt-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 805ef478c3..0fcb3c81d7 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1217,7 +1217,7 @@ TargetLowering::SimplifySetCC(MVT::ValueType VT, SDOperand N0, SDOperand N1, N0.getOperand(0).getOpcode() == ISD::XOR && N0.getOperand(1) == N0.getOperand(0).getOperand(1))) && isa<ConstantSDNode>(N0.getOperand(1)) && - cast<ConstantSDNode>(N0.getOperand(1))->getValue() == 1) { + cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue() == 1) { // If this is (X^1) == 0/1, swap the RHS and eliminate the xor. We // can only do this if the top bits are known zero. unsigned BitWidth = N0.getValueSizeInBits(); |