summaryrefslogtreecommitdiff
path: root/dexlayout/dexlayout_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dexlayout/dexlayout_test.cc')
-rw-r--r--dexlayout/dexlayout_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dexlayout/dexlayout_test.cc b/dexlayout/dexlayout_test.cc
index 38d3c6ec07..08673056d9 100644
--- a/dexlayout/dexlayout_test.cc
+++ b/dexlayout/dexlayout_test.cc
@@ -724,7 +724,7 @@ TEST_F(DexLayoutTest, CodeItemOverrun) {
}
if (last_instruction->SizeInCodeUnits() == 1) {
// Set the opcode to something that will go past the end of the code item.
- const_cast<Instruction*>(last_instruction.Inst())->SetOpcode(
+ const_cast<Instruction&>(last_instruction.Inst()).SetOpcode(
Instruction::CONST_STRING_JUMBO);
mutated_successfully = true;
// Test that the safe iterator doesn't go past the end.