[llvm-commits] [llvm] r137467 -	/llvm/trunk/tools/bugpoint/Miscompilation.cpp
    Nick Lewycky 
    nicholas at mxc.ca
       
    Fri Aug 12 10:25:45 PDT 2011
    
    
  
Author: nicholas
Date: Fri Aug 12 12:25:45 2011
New Revision: 137467
URL: http://llvm.org/viewvc/llvm-project?rev=137467&view=rev
Log:
Fix bugpoint fallout from the new type system.
Modified:
    llvm/trunk/tools/bugpoint/Miscompilation.cpp
Modified: llvm/trunk/tools/bugpoint/Miscompilation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/Miscompilation.cpp?rev=137467&r1=137466&r2=137467&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/Miscompilation.cpp (original)
+++ llvm/trunk/tools/bugpoint/Miscompilation.cpp Fri Aug 12 12:25:45 2011
@@ -411,8 +411,6 @@
       Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
 
       assert(NewF && "Function not found??");
-      assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
-             "found wrong function type?");
       MiscompiledFunctions.push_back(NewF);
     }
 
@@ -593,8 +591,6 @@
   for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
     Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first);
     assert(NewF && "Function not found??");
-    assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
-           "Function has wrong type??");
     MiscompiledFunctions.push_back(NewF);
   }
 
    
    
More information about the llvm-commits
mailing list