projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d160b
)
Use the correct shift amount type.
author
Owen Anderson
<resistor@mac.com>
Mon, 28 Feb 2011 21:10:10 +0000
(21:10 +0000)
committer
Owen Anderson
<resistor@mac.com>
Mon, 28 Feb 2011 21:10:10 +0000
(21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126684
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index c3e9f9aee6616f8747dbcdc334be115dc537280a..767b774da2a8bbd24456940be1b7c77ba5a3881f 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/
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.get
PointerTy(
)));
+ DAG.getConstant(DiffBits, TLI.get
ShiftAmountTy(NVT
)));
}
SDValue DAGTypeLegalizer::PromoteIntRes_BUILD_PAIR(SDNode *N) {