Fix an obvious bug in the refactoring I did a few days ago


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12797 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 32dea94..fddbebdd 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -347,7 +347,7 @@
   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;
 }