aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-19 07:34:47 +0000
committerChris Lattner <sabre@nondot.org>2007-02-19 07:34:47 +0000
commitec1f752ae49b053231288a8c429d076b5855fc7c (patch)
tree0178c5962365b4fc1e567aec04f8801cc35257cd /lib/Transforms/Utils
parent4227bdbf55d8735d343e5a237ffd432e572292c9 (diff)
downloadexternal_llvm-ec1f752ae49b053231288a8c429d076b5855fc7c.zip
external_llvm-ec1f752ae49b053231288a8c429d076b5855fc7c.tar.gz
external_llvm-ec1f752ae49b053231288a8c429d076b5855fc7c.tar.bz2
eliminate use of deprecated apis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/LowerInvoke.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp
index d89cc95..e1712bc 100644
--- a/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/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);
}
}