Changes in directory llvm/tools/bugpoint:
ExtractFunction.cpp updated: 1.55 -> 1.56 Miscompilation.cpp updated: 1.82 -> 1.83 --- Log message: For PR950: http://llvm.org/PR950 : Convert signed integer types to signless. --- Diffs of the changes: (+4 -4) ExtractFunction.cpp | 2 +- Miscompilation.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/tools/bugpoint/ExtractFunction.cpp diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.55 llvm/tools/bugpoint/ExtractFunction.cpp:1.56 --- llvm/tools/bugpoint/ExtractFunction.cpp:1.55 Sun Nov 26 19:05:10 2006 +++ llvm/tools/bugpoint/ExtractFunction.cpp Sun Dec 31 00:02:26 2006 @@ -180,7 +180,7 @@ std::vector<Constant*> ArrayElts; for (unsigned i = 0, e = TorList.size(); i != e; ++i) { std::vector<Constant*> Elts; - Elts.push_back(ConstantInt::get(Type::IntTy, TorList[i].second)); + Elts.push_back(ConstantInt::get(Type::Int32Ty, TorList[i].second)); Elts.push_back(TorList[i].first); ArrayElts.push_back(ConstantStruct::get(Elts)); } Index: llvm/tools/bugpoint/Miscompilation.cpp diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.82 llvm/tools/bugpoint/Miscompilation.cpp:1.83 --- llvm/tools/bugpoint/Miscompilation.cpp:1.82 Sat Dec 23 00:05:41 2006 +++ llvm/tools/bugpoint/Miscompilation.cpp Sun Dec 31 00:02:26 2006 @@ -675,8 +675,8 @@ // Prototype: void *getPointerToNamedFunction(const char* Name) Function *resolverFunc = Safe->getOrInsertFunction("getPointerToNamedFunction", - PointerType::get(Type::SByteTy), - PointerType::get(Type::SByteTy), (Type *)0); + PointerType::get(Type::Int8Ty), + PointerType::get(Type::Int8Ty), (Type *)0); // Use the function we just added to get addresses of functions we need. for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) { @@ -697,7 +697,7 @@ // sbyte* so it matches the signature of the resolver function. // GetElementPtr *funcName, ulong 0, ulong 0 - std::vector<Constant*> GEPargs(2,Constant::getNullValue(Type::IntTy)); + std::vector<Constant*> GEPargs(2,Constant::getNullValue(Type::Int32Ty)); Value *GEP = ConstantExpr::getGetElementPtr(funcName, GEPargs); std::vector<Value*> ResolverArgs; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits