summaryrefslogtreecommitdiffstats
path: root/src/compiler/dex/quick/ralloc_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/dex/quick/ralloc_util.cc')
-rw-r--r--src/compiler/dex/quick/ralloc_util.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/dex/quick/ralloc_util.cc b/src/compiler/dex/quick/ralloc_util.cc
index dd389146ad..30ed1b7db2 100644
--- a/src/compiler/dex/quick/ralloc_util.cc
+++ b/src/compiler/dex/quick/ralloc_util.cc
@@ -37,6 +37,10 @@ void Mir2Lir::ResetRegPool()
if (reg_pool_->FPRegs[i].is_temp)
reg_pool_->FPRegs[i].in_use = false;
}
+ // Reset temp tracking sanity check.
+ if (kIsDebugBuild) {
+ live_sreg_ = INVALID_SREG;
+ }
}
/*