Tidy up some C-isms.
Change-Id: I53b457cab9067369320457549071fc3e4c23c81b
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc
index 9c1f8d0..166d2f6 100644
--- a/src/compiler_llvm/compilation_unit.cc
+++ b/src/compiler_llvm/compilation_unit.cc
@@ -205,7 +205,7 @@
};
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 @@
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