summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.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/tools/bugpoint/Miscompilation.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/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index 222e646522e..2eedd60dd5f 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -654,8 +654,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
// GetElementPtr *funcName, ulong 0, ulong 0
std::vector<Constant*> GEPargs(2,Constant::getNullValue(Type::IntTy));
Value *GEP =
- ConstantExpr::getGetElementPtr(ConstantPointerRef::get(funcName),
- GEPargs);
+ ConstantExpr::getGetElementPtr(funcName, GEPargs);
std::vector<Value*> ResolverArgs;
ResolverArgs.push_back(GEP);
OpenPOWER on IntegriCloud