diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-02-19 07:34:47 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-02-19 07:34:47 +0000 | 
| commit | b5f6d0c15a945e597b462c99183430bd1184722c (patch) | |
| tree | 094a91153943a3e45ca89f323f14fb531ba832fc /llvm/lib/Transforms/Utils | |
| parent | 80b65db862eac831869fcb4e2bfdd2fc381be36f (diff) | |
| download | bcm5719-llvm-b5f6d0c15a945e597b462c99183430bd1184722c.tar.gz bcm5719-llvm-b5f6d0c15a945e597b462c99183430bd1184722c.zip | |
eliminate use of deprecated apis
llvm-svn: 34417
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/LowerInvoke.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp index d89cc95ab15..e1712bce439 100644 --- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp @@ -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);    }  } | 

