summaryrefslogtreecommitdiff
path: root/compiler/optimizing/cha_guard_optimization.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-03-28 07:55:30 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-03-28 07:55:31 +0000
commit7359649f638859e265f252b2301a15c4b7bbafa4 (patch)
tree5ea16cb6e50976e4754ea092f9761cb0eba97bd4 /compiler/optimizing/cha_guard_optimization.cc
parentda3f60aed24d6e804f3b6393e74c62b8de0b4a26 (diff)
parent6f8e2c9913b24f746a154dda700f609cee3095f9 (diff)
Merge "Make data dependency around HDeoptimize correct."
Diffstat (limited to 'compiler/optimizing/cha_guard_optimization.cc')
-rw-r--r--compiler/optimizing/cha_guard_optimization.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/cha_guard_optimization.cc b/compiler/optimizing/cha_guard_optimization.cc
index 4f160aecef..048073e37a 100644
--- a/compiler/optimizing/cha_guard_optimization.cc
+++ b/compiler/optimizing/cha_guard_optimization.cc
@@ -202,8 +202,8 @@ bool CHAGuardVisitor::HoistGuard(HShouldDeoptimizeFlag* flag,
HInstruction* suspend = loop_info->GetSuspendCheck();
// Need a new deoptimize instruction that copies the environment
// of the suspend instruction for the loop.
- HDeoptimize* deoptimize =
- new (GetGraph()->GetArena()) HDeoptimize(compare, suspend->GetDexPc());
+ HDeoptimize* deoptimize = new (GetGraph()->GetArena()) HDeoptimize(
+ GetGraph()->GetArena(), compare, HDeoptimize::Kind::kInline, suspend->GetDexPc());
pre_header->InsertInstructionBefore(deoptimize, pre_header->GetLastInstruction());
deoptimize->CopyEnvironmentFromWithLoopPhiAdjustment(
suspend->GetEnvironment(), loop_info->GetHeader());