diff options
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index eaaa5740..73c3a3a 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -809,8 +809,8 @@ void MCAssembler::writeSectionData(raw_ostream &OS, getContext().reportError(SMLoc(), Sec->getVirtualSectionKind() + " section '" + Sec->getName() + "' cannot have fixups"); - for (unsigned i = 0, e = DF.getContents().size(); i != e; ++i) - if (DF.getContents()[i]) { + for (char C : DF.getContents()) + if (C) { getContext().reportError(SMLoc(), Sec->getVirtualSectionKind() + " section '" + Sec->getName() + |