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

Reid Spencer reid at x10sys.com
Thu Nov 2 12:26:57 PST 2006



Changes in directory llvm/tools/bugpoint:

CrashDebugger.cpp updated: 1.52 -> 1.53
Miscompilation.cpp updated: 1.77 -> 1.78
---
Log message:

For PR786: http://llvm.org/PR786 :
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining 
issues when they see them. All changes pass DejaGnu tests and Olden.


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

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


Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.52 llvm/tools/bugpoint/CrashDebugger.cpp:1.53
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.52	Fri Oct 27 15:22:04 2006
+++ llvm/tools/bugpoint/CrashDebugger.cpp	Thu Nov  2 14:25:50 2006
@@ -525,7 +525,6 @@
   std::cout << "\n*** Debugging optimizer crash!\n";
 
   // Reduce the list of passes which causes the optimizer to crash...
-  unsigned OldSize = PassesToRun.size();
   if (!BugpointIsInterrupted)
     ReducePassList(*this).reduceList(PassesToRun);
 


Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.77 llvm/tools/bugpoint/Miscompilation.cpp:1.78
--- llvm/tools/bugpoint/Miscompilation.cpp:1.77	Thu Sep  7 13:21:07 2006
+++ llvm/tools/bugpoint/Miscompilation.cpp	Thu Nov  2 14:25:50 2006
@@ -747,7 +747,7 @@
 
           // Pass on the arguments to the real function, return its result
           if (F->getReturnType() == Type::VoidTy) {
-            CallInst *Call = new CallInst(FuncPtr, Args, "", DoCallBB);
+            new CallInst(FuncPtr, Args, "", DoCallBB);
             new ReturnInst(DoCallBB);
           } else {
             CallInst *Call = new CallInst(FuncPtr, Args, "retval", DoCallBB);






More information about the llvm-commits mailing list