summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/RallocUtil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/codegen/RallocUtil.cc')
-rw-r--r--src/compiler/codegen/RallocUtil.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/codegen/RallocUtil.cc b/src/compiler/codegen/RallocUtil.cc
index 3b222f6f76..492c79ae83 100644
--- a/src/compiler/codegen/RallocUtil.cc
+++ b/src/compiler/codegen/RallocUtil.cc
@@ -717,7 +717,8 @@ extern void oatLockAllTemps(CompilationUnit* cUnit)
{
int i;
for (i=0; i< cUnit->regPool->numCoreRegs; i++) {
- oatLockTemp(cUnit, cUnit->regPool->coreRegs[i].reg);
+ if (cUnit->regPool->coreRegs[i].isTemp)
+ oatLockTemp(cUnit, cUnit->regPool->coreRegs[i].reg);
}
}