[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 17 17:44:47 PDT 2004



Changes in directory llvm/tools/bugpoint:

Miscompilation.cpp updated: 1.49 -> 1.50

---
Log message:

bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Replace ConstantPointerRef usage with GlobalValue usage


---
Diffs of the changes:  (+1 -2)

Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.49 llvm/tools/bugpoint/Miscompilation.cpp:1.50
--- llvm/tools/bugpoint/Miscompilation.cpp:1.49	Wed Jun 23 12:31:13 2004
+++ llvm/tools/bugpoint/Miscompilation.cpp	Sat Jul 17 19:44:37 2004
@@ -654,8 +654,7 @@
         // 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);
 





More information about the llvm-commits mailing list