Don't use PathV1.h in FileUtilities.h.
[oota-llvm.git] / tools / bugpoint / ExecutionDriver.cpp
index da360453ecce66d9cf17c66503f9133a358f54af..fd0cc5988f236690e30ad8a577a770a9bafd4a7a 100644 (file)
@@ -446,8 +446,8 @@ bool BugDriver::diffProgram(const Module *Program,
 
   std::string Error;
   bool FilesDifferent = false;
-  if (int Diff = DiffFilesWithTolerance(sys::Path(ReferenceOutputFile),
-                                        sys::Path(Output.str()),
+  if (int Diff = DiffFilesWithTolerance(ReferenceOutputFile,
+                                        Output.str(),
                                         AbsTolerance, RelTolerance, &Error)) {
     if (Diff == 2) {
       errs() << "While diffing output: " << Error << '\n';