Put the functionality for printing a value to a raw_ostream as an
[oota-llvm.git] / tools / bugpoint / BugDriver.cpp
index 937d86a5b8aa59468200dec49364451af68b339a..a5436ba485257c9f2c7b49ac2cab547018d9adbb 100644 (file)
@@ -194,8 +194,8 @@ bool BugDriver::run(std::string &ErrMsg) {
 
   // Make sure the reference output file gets deleted on exit from this
   // function, if appropriate.
-  sys::Path ROF(ReferenceOutputFile);
-  FileRemover RemoverInstance(ROF.str(), CreatedOutput && !SaveTemps);
+  std::string ROF(ReferenceOutputFile);
+  FileRemover RemoverInstance(ROF, CreatedOutput && !SaveTemps);
 
   // Diff the output of the raw program against the reference output.  If it
   // matches, then we assume there is a miscompilation bug and try to