[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
LLVM
llvm at cs.uiuc.edu
Sat Jul 17 17:30:35 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
LowerInvoke.cpp updated: 1.16 -> 1.17
---
Log message:
bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Replace ConstantPointerRef usage with GlobalValue usage
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.16 llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.17
--- llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.16 Fri May 28 00:02:13 2004
+++ llvm/lib/Transforms/Scalar/LowerInvoke.cpp Sat Jul 17 19:30:25 2004
@@ -135,7 +135,7 @@
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 @@
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 @@
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...
More information about the llvm-commits
mailing list