From 38d29fda9849b2e0e46a26a91b711e29177692cb Mon Sep 17 00:00:00 2001 From: Orion Hodson Date: Fri, 7 Sep 2018 12:58:37 +0100 Subject: ART: Simplify cache flush calls Remove need to cast to char* for Flush{Data,Instruction}Cache. Test: Treehugger Change-Id: I880c327d59624a04bc2a44a741bc40756a0fd3eb --- compiler/common_compiler_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/common_compiler_test.cc') diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index d603d9673c..586891a3ff 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -108,7 +108,7 @@ void CommonCompilerTest::MakeExecutable(const void* code_start, size_t code_leng int result = mprotect(reinterpret_cast(base), len, PROT_READ | PROT_WRITE | PROT_EXEC); CHECK_EQ(result, 0); - FlushInstructionCache(reinterpret_cast(base), reinterpret_cast(base + len)); + FlushInstructionCache(reinterpret_cast(base), reinterpret_cast(base + len)); } void CommonCompilerTest::MakeExecutable(ObjPtr class_loader, -- cgit v1.2.3-59-g8ed1b