[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 10 20:23:01 PDT 2002
Changes in directory llvm/lib/Transforms/Instrumentation:
TraceValues.cpp updated: 1.47 -> 1.48
---
Log message:
- Change getelementptr instruction to use long indexes instead of uint
indexes for sequential types.
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.47 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.48
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.47 Tue Sep 10 12:03:03 2002
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp Tue Sep 10 20:21:26 2002
@@ -226,7 +226,7 @@
// Turn the format string into an sbyte *
Instruction *GEP =
new GetElementPtrInst(fmtVal,
- vector<Value*>(2,ConstantUInt::get(Type::UIntTy, 0)),
+ vector<Value*>(2,ConstantSInt::get(Type::LongTy, 0)),
"trstr", InsertBefore);
// Insert a call to the hash function if this is a pointer value
More information about the llvm-commits
mailing list