diff options
author | Owen Anderson <resistor@mac.com> | 2011-02-28 21:10:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2011-02-28 21:10:10 +0000 |
commit | 0dc63104c683d40c6b05a2967a3d5d595e65fa39 (patch) | |
tree | 038ac555bf1ae5c822415b5c83573de3115e783b /llvm/lib/CodeGen/SelectionDAG | |
parent | 4f4df8186121e9a14a4db723d25378fb13f7de92 (diff) | |
download | bcm5719-llvm-0dc63104c683d40c6b05a2967a3d5d595e65fa39.tar.gz bcm5719-llvm-0dc63104c683d40c6b05a2967a3d5d595e65fa39.zip |
Use the correct shift amount type.
llvm-svn: 126684
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index c3e9f9aee66..767b774da2a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -226,7 +226,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_BSWAP(SDNode *N) { unsigned DiffBits = NVT.getSizeInBits() - OVT.getSizeInBits(); return DAG.getNode(ISD::SRL, dl, NVT, DAG.getNode(ISD::BSWAP, dl, NVT, Op), - DAG.getConstant(DiffBits, TLI.getPointerTy())); + DAG.getConstant(DiffBits, TLI.getShiftAmountTy(NVT))); } SDValue DAGTypeLegalizer::PromoteIntRes_BUILD_PAIR(SDNode *N) { |