diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc index fe44666d097..8b891d05777 100644 --- a/runtime/vm/object.cc +++ b/runtime/vm/object.cc @@ -7976,7 +7976,7 @@ void Function::SetInstructions(const Code& value) const { } void Function::SetInstructionsSafe(const Code& value) const { - untag()->set_code(value.ptr()); + untag()->set_code(value.ptr()); StoreNonPointer(&untag()->entry_point_, value.EntryPoint()); StoreNonPointer(&untag()->unchecked_entry_point_, value.UncheckedEntryPoint()); diff --git a/runtime/vm/object.h b/runtime/vm/object.h index 342d6400306..f9ce4ff435d 100644 --- a/runtime/vm/object.h +++ b/runtime/vm/object.h @@ -3159,7 +3159,7 @@ class Function : public Object { bool SafeToClosurize() const; static CodePtr CurrentCodeOf(const FunctionPtr function) { - return function->untag()->code(); + return function->untag()->code(); } CodePtr unoptimized_code() const {