Use ZoneHandle when creating ConstantInstr

BUG=
TBR=fschneider@google.com

Review URL: https://codereview.chromium.org/2446093002 .
This commit is contained in:
Vyacheslav Egorov 2016-10-25 11:15:14 +02:00
parent f4ec20abac
commit cb87f2d82f

View file

@ -3833,7 +3833,7 @@ bool FlowGraphInliner::TryInlineRecognizedMethod(FlowGraph* flow_graph,
*entry = new(Z) TargetEntryInstr(flow_graph->allocate_block_id(),
call->GetBlock()->try_index());
(*entry)->InheritDeoptTarget(Z, call);
*last = new(Z) ConstantInstr(type);
*last = new(Z) ConstantInstr(Type::ZoneHandle(Z, type.raw()));
flow_graph->AppendTo(*entry, *last,
call->deopt_id() != Thread::kNoDeoptId ?
call->env() : NULL,