summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerInvoke.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-13 06:10:12 +0000
committerChris Lattner <sabre@nondot.org>2005-05-13 06:10:12 +0000
commit1381dd8a6eeb882db92024a46cdbd6689ea1cd94 (patch)
tree3fda4d59064810c9fe655cd47bfe13a2c4a6aeff /lib/Transforms/Utils/LowerInvoke.cpp
parenteb516e7f0aa3223eab7967f4c0f8132d82efd841 (diff)
downloadllvm-1381dd8a6eeb882db92024a46cdbd6689ea1cd94.tar.gz
llvm-1381dd8a6eeb882db92024a46cdbd6689ea1cd94.tar.bz2
llvm-1381dd8a6eeb882db92024a46cdbd6689ea1cd94.tar.xz
Prefer int 0 instead of long 0 for GEP arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r--lib/Transforms/Utils/LowerInvoke.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp
index b751bc0d26..2738b4aa5e 100644
--- a/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/lib/Transforms/Utils/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);