Fix an obvious bug in the refactoring I did a few days ago
authorChris Lattner <sabre@nondot.org>
Fri, 9 Apr 2004 22:28:33 +0000 (22:28 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Apr 2004 22:28:33 +0000 (22:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12797 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/Miscompilation.cpp

index 32dea94d8a7c4e00c9d81e20f9a6b0b8298cf141..fddbebddfe7274e103c7160c873683de45ca33cc 100644 (file)
@@ -347,7 +347,7 @@ static bool TestOptimizer(BugDriver &BD, Module *Test, Module *Safe) {
   delete Test;
 
   std::cout << "  Checking to see if the merged program executes correctly: ";
-  bool Broken = TestMergedProgram(BD, Test, Safe, true);
+  bool Broken = TestMergedProgram(BD, Optimized, Safe, true);
   std::cout << (Broken ? " nope.\n" : " yup.\n");
   return Broken;
 }