diff options
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
-rw-r--r-- | src/compiler_llvm/compilation_unit.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 9c1f8d0699..166d2f610b 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -205,7 +205,7 @@ class ScopedTempFile { }; bool CompilationUnit::Materialize() { - const std::string tmp_file = "/tmp/art-llvm-XXXXXX"; + const std::string tmp_file("/tmp/art-llvm-XXXXXX"); // Prepare the input ScopedTempFile input(tmp_file); @@ -238,8 +238,7 @@ bool CompilationUnit::Materialize() { insn_set_))); } else { if (pid < 0) { - LOG(FATAL) << "Failed to fork a process to do the compilation: " - << strerror(errno); + PLOG(FATAL) << "Failed to fork a process to do the compilation"; } // Free the resources |