diff options
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 4dd3163..8f29153 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -219,7 +219,8 @@ void MCStreamer::emitGPRel32Value(const MCExpr *Value) { /// Emit NumBytes bytes worth of the value specified by FillValue. /// This implements directives such as '.space'. void MCStreamer::emitFill(uint64_t NumBytes, uint8_t FillValue) { - emitFill(*MCConstantExpr::create(NumBytes, getContext()), FillValue); + if (NumBytes) + emitFill(*MCConstantExpr::create(NumBytes, getContext()), FillValue); } void llvm::MCStreamer::emitNops(int64_t NumBytes, int64_t ControlledNopLen, |