We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34dd8ec commit 5414921Copy full SHA for 5414921
llvm/lib/MC/MCAsmStreamer.cpp
@@ -2470,8 +2470,7 @@ void MCAsmStreamer::emitAddrsigSym(const MCSymbol *Sym) {
2470
/// the specified string in the output .s file. This capability is
2471
/// indicated by the hasRawTextSupport() predicate.
2472
void MCAsmStreamer::emitRawTextImpl(StringRef String) {
2473
- if (!String.empty() && String.back() == '\n')
2474
- String = String.substr(0, String.size()-1);
+ String.consume_back("\n");
2475
OS << String;
2476
EmitEOL();
2477
}
0 commit comments