diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-09 16:50:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-09 16:50:40 +0000 |
commit | 6b2d69655ace2788b244c8a4ebcfb6f2a926ad92 (patch) | |
tree | b26808c7f269d888ecc3db61986c4bf710a8e098 /lib/CodeGen/SelectionDAG | |
parent | 9a5ef20f5ed0551e02e4e6d7a41185a52187f5cf (diff) |
Fix CodeGen/X86/shift-folding.ll:test3 on X86
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ac4a63049c..306d970897 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -641,7 +641,7 @@ void SelectionDAGLowering::visitGetElementPtr(User &I) { if (isPowerOf2_64(ElementSize)) { unsigned Amt = Log2_64(ElementSize); IdxN = DAG.getNode(ISD::SHL, N.getValueType(), IdxN, - getIntPtrConstant(Amt)); + DAG.getConstant(Amt, TLI.getShiftAmountTy())); N = DAG.getNode(ISD::ADD, N.getValueType(), N, IdxN); continue; } |