eliminate use of deprecated apis

llvm-svn: 34417
This commit is contained in:
Chris Lattner
2007-02-19 07:34:47 +00:00
parent 80b65db862
commit b5f6d0c15a
3 changed files with 8 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ void LowerInvoke::createAbortMessage(Module *M) {
GlobalValue::InternalLinkage,
Msg, "abortmsg", M);
std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::Int32Ty));
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, &GEPIdx[0], 2);
} else {
// The abort message for cheap EH support tells the user that EH is not
// enabled.
@@ -179,7 +179,7 @@ void LowerInvoke::createAbortMessage(Module *M) {
GlobalValue::InternalLinkage,
Msg, "abortmsg", M);
std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::Int32Ty));
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
AbortMessage = ConstantExpr::getGetElementPtr(MsgGV, &GEPIdx[0], 2);
}
}