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:
ac8d276
)
GEP subscript is interpreted as a signed value.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 5 Jan 2007 01:46:20 +0000
(
01:46
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 5 Jan 2007 01:46:20 +0000
(
01:46
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32888
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index f4fe873f9fbe50ee6fc293a6c45c8366fe0c4a66..d8d862d709872cff6a98706c7269e81e85915583 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-1703,7
+1703,7
@@
void SelectionDAGLowering::visitGetElementPtr(User &I) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) {
if (CI->getZExtValue() == 0) continue;
uint64_t Offs =
- TD->getTypeSize(Ty)*cast<ConstantInt>(CI)->get
Z
ExtValue();
+ TD->getTypeSize(Ty)*cast<ConstantInt>(CI)->get
S
ExtValue();
N = DAG.getNode(ISD::ADD, N.getValueType(), N, getIntPtrConstant(Offs));
continue;
}