summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/ralloc_util.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-09-29 18:31:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-09-29 18:31:02 +0000
commit1edf638010c4b15b87f865d180c3b95026827e9a (patch)
treebc752c9dd1f36cf0421e56c267e772e7c7ebf43f /compiler/dex/quick/ralloc_util.cc
parentf731a78809ac61a9085781370f0f38ef88305276 (diff)
parent750359753444498d509a756fa9a042e9f3c432df (diff)
Merge "ART: Deprecate CompilationUnit's code_item"
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r--compiler/dex/quick/ralloc_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc
index b171c78ed9..6305b22ded 100644
--- a/compiler/dex/quick/ralloc_util.cc
+++ b/compiler/dex/quick/ralloc_util.cc
@@ -1323,7 +1323,8 @@ void Mir2Lir::DoPromotion() {
/* Returns sp-relative offset in bytes for a VReg */
int Mir2Lir::VRegOffset(int v_reg) {
- return StackVisitor::GetVRegOffset(cu_->code_item, core_spill_mask_,
+ const DexFile::CodeItem* code_item = mir_graph_->GetCurrentDexCompilationUnit()->GetCodeItem();
+ return StackVisitor::GetVRegOffset(code_item, core_spill_mask_,
fp_spill_mask_, frame_size_, v_reg,
cu_->instruction_set);
}