[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 12 23:10:29 PDT 2005
Changes in directory llvm/lib/Transforms/Scalar:
LowerInvoke.cpp updated: 1.23 -> 1.24
---
Log message:
Prefer int 0 instead of long 0 for GEP arguments.
---
Diffs of the changes: (+3 -3)
LowerInvoke.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.23 llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.24
--- llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.23 Fri May 6 01:48:21 2005
+++ llvm/lib/Transforms/Scalar/LowerInvoke.cpp Fri May 13 01:10:12 2005
@@ -157,7 +157,7 @@
GlobalVariable *MsgGV = new GlobalVariable(Msg->getType(), true,
GlobalValue::InternalLinkage,
Msg, "abortmsg", &M);
- std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::LongTy));
+ std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::IntTy));
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
} else {
// The abort message for cheap EH support tells the user that EH is not
@@ -170,7 +170,7 @@
GlobalVariable *MsgGV = new GlobalVariable(Msg->getType(), true,
GlobalValue::InternalLinkage,
Msg, "abortmsg", &M);
- std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::LongTy));
+ std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::IntTy));
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
}
}
@@ -355,7 +355,7 @@
// Now that we have a pointer to the whole record, remove the entry from the
// JBList.
std::vector<Value*> Idx;
- Idx.push_back(Constant::getNullValue(Type::LongTy));
+ Idx.push_back(Constant::getNullValue(Type::IntTy));
Idx.push_back(ConstantUInt::get(Type::UIntTy, 0));
Value *NextFieldPtr = new GetElementPtrInst(RecPtr, Idx, "NextField", RI);
Value *NextRec = new LoadInst(NextFieldPtr, "NextRecord", RI);
More information about the llvm-commits
mailing list