Fix the LLVM build.
Fix unused parameter problem.
(cherry picked from commit 7f3dfe74eb692c15d1b5d4484ecfb31d61e891eb)
Change-Id: I7c90ad0545a8171f791b272439f6d2a91c3d9430
diff --git a/src/common_test.h b/src/common_test.h
index 07f53a0..4f65d54 100644
--- a/src/common_test.h
+++ b/src/common_test.h
@@ -179,12 +179,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,