[llvm-commits] [SignlessTypes] CVS: llvm/lib/Target/TargetData.cpp
Reid Spencer
reid at x10sys.com
Fri Oct 20 00:34:10 PDT 2006
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.70.4.2 -> 1.70.4.3
---
Log message:
The forgotten patches. These should have been committed and tagged with the
ST_iter_1 tag, but they weren't, so we're commiting them now.
---
Diffs of the changes: (+1 -1)
TargetData.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.70.4.2 llvm/lib/Target/TargetData.cpp:1.70.4.3
--- llvm/lib/Target/TargetData.cpp:1.70.4.2 Thu Oct 19 19:34:43 2006
+++ llvm/lib/Target/TargetData.cpp Fri Oct 20 02:33:53 2006
@@ -346,7 +346,7 @@
Ty = cast<SequentialType>(Ty)->getElementType();
// Get the array index and the size of each array element.
- int64_t arrayIdx = cast<ConstantInt>(Idx[CurIDX])->getZExtValue();
+ int64_t arrayIdx = cast<ConstantInt>(Idx[CurIDX])->getSExtValue();
Result += arrayIdx * (int64_t)getTypeSize(Ty);
}
}
More information about the llvm-commits
mailing list