summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LowerInvoke.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 00:44:37 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 00:44:37 +0000
commitcb3fb5d4f5902d6759a27e04521a4a30b8fef7e7 (patch)
treef8e9717638771828ae21cd888a59c5aa40851604 /llvm/lib/Transforms/Scalar/LowerInvoke.cpp
parente5914d8555e1bb04274a09db8e4c5a110255260e (diff)
downloadbcm5719-llvm-cb3fb5d4f5902d6759a27e04521a4a30b8fef7e7.tar.gz
bcm5719-llvm-cb3fb5d4f5902d6759a27e04521a4a30b8fef7e7.zip
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage llvm-svn: 14953
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerInvoke.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LowerInvoke.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp
index bde4ff56b06..835a5ae7892 100644
--- a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp
@@ -135,7 +135,7 @@ bool LowerInvoke::doInitialization(Module &M) {
if (MsgGV) {
std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::LongTy));
AbortMessage =
- ConstantExpr::getGetElementPtr(ConstantPointerRef::get(MsgGV), GEPIdx);
+ ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
}
} else {
@@ -154,7 +154,7 @@ bool LowerInvoke::doInitialization(Module &M) {
if (MsgGV) {
std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::LongTy));
AbortMessage =
- ConstantExpr::getGetElementPtr(ConstantPointerRef::get(MsgGV), GEPIdx);
+ ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
}
}
@@ -191,7 +191,7 @@ void LowerInvoke::writeAbortMessage(Instruction *IB) {
WriteFn->getParent());
std::vector<Constant*> GEPIdx(2, Constant::getNullValue(Type::LongTy));
AbortMessage =
- ConstantExpr::getGetElementPtr(ConstantPointerRef::get(MsgGV), GEPIdx);
+ ConstantExpr::getGetElementPtr(MsgGV, GEPIdx);
}
// These are the arguments we WANT...
OpenPOWER on IntegriCloud