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 | 41fd6d5d27fa2ee610b70adc7b7c3c319da19433 (patch) | |
tree | 391dd676a88d761d6b364cc4782da51f05a6d775 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 35ecaa76facf658644f7ccc23251b0f0b0ae132b (diff) | |
download | bcm5719-llvm-41fd6d5d27fa2ee610b70adc7b7c3c319da19433.tar.gz bcm5719-llvm-41fd6d5d27fa2ee610b70adc7b7c3c319da19433.zip |
Fix CodeGen/X86/shift-folding.ll:test3 on X86
llvm-svn: 24256
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ac4a63049cb..306d970897b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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; } |