diff options
| author | 2014-05-22 13:11:27 +0000 | |
|---|---|---|
| committer | 2014-05-22 13:11:27 +0000 | |
| commit | 59f3f62534581311c7c403c832f56c272426a17c (patch) | |
| tree | 968eb87c79810f60e43eed1397d24daf9497a6b1 /compiler/dex/quick | |
| parent | 481b4027849c8c8b0f6f25a2d5c460e11f8eb64d (diff) | |
| parent | 3aa57730e2aec451bb836918d936c6862598d8d6 (diff) | |
Merge "ART: MIR, SSARepresentation, and BasicBlock Additional API"
Diffstat (limited to 'compiler/dex/quick')
| -rw-r--r-- | compiler/dex/quick/dex_file_method_inliner.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/dex/quick/dex_file_method_inliner.cc b/compiler/dex/quick/dex_file_method_inliner.cc index 9f98e55997..526c981ae9 100644 --- a/compiler/dex/quick/dex_file_method_inliner.cc +++ b/compiler/dex/quick/dex_file_method_inliner.cc @@ -35,8 +35,7 @@ namespace art { namespace { // anonymous namespace MIR* AllocReplacementMIR(MIRGraph* mir_graph, MIR* invoke, MIR* move_return) { - ArenaAllocator* arena = mir_graph->GetArena(); - MIR* insn = static_cast<MIR*>(arena->Alloc(sizeof(MIR), kArenaAllocMIR)); + MIR* insn = mir_graph->NewMIR(); insn->offset = invoke->offset; insn->optimization_flags = MIR_CALLEE; return insn; |