summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/arm/MethodCodegenDriver.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-09-13 12:00:00 -0700
committer Elliott Hughes <enh@google.com> 2011-09-13 13:27:51 -0700
commit1d3f114124b140629a7d22fa5cfa20ab8fc96934 (patch)
treea4e8eb3d22aa2991a73dea85da1d31fda6114c91 /src/compiler/codegen/arm/MethodCodegenDriver.cc
parent93e74e8d879270071c3aa163f8495ada8d21f42f (diff)
Support 32-bit volatiles.
Change-Id: If40ead8e13986d589ac1d1637034e25fc4108189
Diffstat (limited to 'src/compiler/codegen/arm/MethodCodegenDriver.cc')
-rw-r--r--src/compiler/codegen/arm/MethodCodegenDriver.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen/arm/MethodCodegenDriver.cc b/src/compiler/codegen/arm/MethodCodegenDriver.cc
index 7e09ccc469..8070e8d4e6 100644
--- a/src/compiler/codegen/arm/MethodCodegenDriver.cc
+++ b/src/compiler/codegen/arm/MethodCodegenDriver.cc
@@ -304,7 +304,7 @@ static void genSgetWide(CompilationUnit* cUnit, MIR* mir,
rlDest = oatGetDestWide(cUnit, mir, 0, 1);
RegLocation rlResult = oatEvalLoc(cUnit, rlDest, kAnyReg, true);
#if ANDROID_SMP != 0
- if (isVolatile) {
+ if (field->IsVolatile()) {
oatGenMemBarrier(cUnit, kSY);
}
#endif
@@ -367,7 +367,7 @@ static void genSget(CompilationUnit* cUnit, MIR* mir,
rlDest = oatGetDest(cUnit, mir, 0);
rlResult = oatEvalLoc(cUnit, rlDest, kAnyReg, true);
#if ANDROID_SMP != 0
- if (isVolatile) {
+ if (field->IsVolatile()) {
oatGenMemBarrier(cUnit, kSY);
}
#endif