summaryrefslogtreecommitdiff
path: root/compiler/utils
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/utils')
-rw-r--r--compiler/utils/arm/assembler_thumb2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/utils/arm/assembler_thumb2.h b/compiler/utils/arm/assembler_thumb2.h
index 5c36110cf6..2ff9018510 100644
--- a/compiler/utils/arm/assembler_thumb2.h
+++ b/compiler/utils/arm/assembler_thumb2.h
@@ -924,9 +924,11 @@ class Thumb2Assembler FINAL : public ArmAssembler {
class ScopedForce32Bit {
public:
- explicit ScopedForce32Bit(Thumb2Assembler* assembler)
+ explicit ScopedForce32Bit(Thumb2Assembler* assembler, bool force = true)
: assembler_(assembler), old_force_32bit_(assembler->IsForced32Bit()) {
- assembler->Force32Bit();
+ if (force) {
+ assembler->Force32Bit();
+ }
}
~ScopedForce32Bit() {