diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-13 06:10:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-13 06:10:12 +0000 |
commit | ae186e012c07bd3fd21e7a535457149a838bf0ac (patch) | |
tree | 52a49db92c4eb9da77d5d5dd8628e9a7720b66b7 /llvm/lib/Transforms/Scalar/LowerInvoke.cpp | |
parent | bb1d60de9c0c7013714097468b304e54f6e36cd9 (diff) | |
download | bcm5719-llvm-ae186e012c07bd3fd21e7a535457149a838bf0ac.tar.gz bcm5719-llvm-ae186e012c07bd3fd21e7a535457149a838bf0ac.zip |
Prefer int 0 instead of long 0 for GEP arguments.
llvm-svn: 21924
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerInvoke.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LowerInvoke.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp index b751bc0d26d..2738b4aa5e3 100644 --- a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp @@ -157,7 +157,7 @@ void LowerInvoke::createAbortMessage() { 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 @@ void LowerInvoke::createAbortMessage() { 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 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { // 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); |