Commit 06025cf6 authored by Eli Friedman's avatar Eli Friedman
Browse files

Don't store Twine in a local variable.

Fixes post-commit review comment from r286177.

llvm-svn: 286275
parent e81021a5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -257,8 +257,7 @@ bool LTOCodeGenerator::compileOptimizedToFile(const char **Name) {
  bool genResult = compileOptimized(&objFile.os());
  objFile.os().close();
  if (objFile.os().has_error()) {
    Twine ErrMsg = "could not write object file: " + Filename.str();
    emitError(ErrMsg.str());
    emitError((Twine("could not write object file: ") + Filename).str());
    objFile.os().clear_error();
    sys::fs::remove(Twine(Filename));
    return false;