Index: src/IceTargetLoweringARM32.cpp |
diff --git a/src/IceTargetLoweringARM32.cpp b/src/IceTargetLoweringARM32.cpp |
index 08e26078de5390a26a9e7bf6705311e552420d5d..83d92f4e95646b9bd2ed2d2d5cc45187763edf71 100644 |
--- a/src/IceTargetLoweringARM32.cpp |
+++ b/src/IceTargetLoweringARM32.cpp |
@@ -1715,7 +1715,6 @@ void TargetARM32::postLowerLegalization() { |
CurInstr->setDeleted(); |
} |
} else if (auto *StrInstr = llvm::dyn_cast<InstARM32Str>(CurInstr)) { |
- Sandboxer Bundle(this); |
if (OperandARM32Mem *LegalMem = Legalizer.legalizeMemOperand( |
llvm::cast<OperandARM32Mem>(StrInstr->getSrc(1)))) { |
Sandboxer(this).str(llvm::cast<Variable>(CurInstr->getSrc(0)), |
@@ -6137,17 +6136,9 @@ void TargetARM32::ComputationTracker::recordProducers(CfgNode *Node) { |
TargetARM32::Sandboxer::Sandboxer(TargetARM32 *Target, |
InstBundleLock::Option BundleOption) |
- : Target(Target) { |
- if (Target->NeedSandboxing) { |
- Target->_bundle_lock(BundleOption); |
- } |
-} |
+ : Bundler(Target, BundleOption), Target(Target) {} |
-TargetARM32::Sandboxer::~Sandboxer() { |
- if (Target->NeedSandboxing) { |
- Target->_bundle_unlock(); |
- } |
-} |
+TargetARM32::Sandboxer::~Sandboxer() {} |
namespace { |
OperandARM32FlexImm *indirectBranchBicMask(Cfg *Func) { |