Fix the LLVM build.
Fix unused parameter problem.
Change-Id: I749e66b18b5359a79f73652d66e3325777f1d0dd
diff --git a/src/common_test.h b/src/common_test.h
index 29ed57c..fc28ecf 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -174,12 +174,14 @@
MakeExecutable(code_array->GetData(), code_array->GetLength());
}
- static void MakeExecutable(const std::vector<uint8_t>& code) {
#if !defined(ART_USE_LLVM_COMPILER) // LLVM compilation uses ELF instead
+ static void MakeExecutable(const std::vector<uint8_t>& code) {
CHECK_NE(code.size(), 0U);
MakeExecutable(&code[0], code.size());
-#endif
}
+#else
+ static void MakeExecutable(const std::vector<uint8_t>&) {}
+#endif
// Create an OatMethod based on pointers (for unit tests)
OatFile::OatMethod CreateOatMethod(const void* code,