From 7b9d996e4cd7d154bb1a244d67139aff0c363cf2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 20 Apr 2012 18:48:18 -0700 Subject: Tidy up some C-isms. Change-Id: I53b457cab9067369320457549071fc3e4c23c81b --- src/compiler_llvm/compilation_unit.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/compiler_llvm/compilation_unit.cc') 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 -- cgit v1.2.3-59-g8ed1b