summaryrefslogtreecommitdiff
path: root/src/image_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/image_writer.cc')
-rw-r--r--src/image_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image_writer.cc b/src/image_writer.cc
index 969f4ab015..bc22af6552 100644
--- a/src/image_writer.cc
+++ b/src/image_writer.cc
@@ -481,7 +481,7 @@ void ImageWriter::FixupMethod(const Method* orig, Method* copy) {
// Every type of method can have an invoke stub
uint32_t invoke_stub_offset = orig->GetOatInvokeStubOffset();
const byte* invoke_stub = GetOatAddress(invoke_stub_offset);
- copy->invoke_stub_ = reinterpret_cast<const Method::InvokeStub*>(invoke_stub);
+ copy->invoke_stub_ = reinterpret_cast<Method::InvokeStub*>(const_cast<byte*>(invoke_stub));
if (orig->IsAbstract()) {
// Abstract methods are pointed to a stub that will throw AbstractMethodError if they are called