Index: lib/MC/MCObjectStreamer.cpp |
diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp |
index b0a3d498a97c3403c68006ba4b41cbb27c1cda73..e8c31b365f5c73716bd8223d12f49270f5f83d79 100644 |
--- a/lib/MC/MCObjectStreamer.cpp |
+++ b/lib/MC/MCObjectStreamer.cpp |
@@ -213,7 +213,8 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst, |
const MCSubtargetInfo &STI) { |
// @LOCALMOD-START |
- if (NaClExpander && NaClExpander->expandInst(Inst, *this, STI)) |
+ MCSectionData *SD = getCurrentSectionData(); |
+ if (!SD->isBundleLocked() && NaClExpander && NaClExpander->expandInst(Inst, *this, STI)) |
return; |
if (getAssembler().isBundlingEnabled() && |
@@ -224,7 +225,7 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst, |
MCStreamer::EmitInstruction(Inst, STI); |
- MCSectionData *SD = getCurrentSectionData(); |
+ |
SD->setHasInstructions(true); |
// Now that a machine instruction has been assembled into this section, make |