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

Chris Lattner sabre at nondot.org
Sun Feb 18 23:41:47 PST 2007



Changes in directory llvm/tools/bugpoint:

Miscompilation.cpp updated: 1.88 -> 1.89
---
Log message:

remove use of deprecated apis


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

 Miscompilation.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.88 llvm/tools/bugpoint/Miscompilation.cpp:1.89
--- llvm/tools/bugpoint/Miscompilation.cpp:1.88	Tue Feb 13 00:05:43 2007
+++ llvm/tools/bugpoint/Miscompilation.cpp	Mon Feb 19 01:41:31 2007
@@ -702,8 +702,7 @@
 
         // GetElementPtr *funcName, ulong 0, ulong 0
         std::vector<Constant*> GEPargs(2,Constant::getNullValue(Type::Int32Ty));
-        Value *GEP =
-          ConstantExpr::getGetElementPtr(funcName, GEPargs);
+        Value *GEP = ConstantExpr::getGetElementPtr(funcName, &GEPargs[0], 2);
         std::vector<Value*> ResolverArgs;
         ResolverArgs.push_back(GEP);
 






More information about the llvm-commits mailing list