Skip to content

Commit ec4cc84

Browse files
DavidSpickettJDevlieghere
authored andcommitted
[llvm][MC] Remove [[nodiscard]] from WithMarkup constructor
This is causing a lot of warnings with older compilers and errors for -Werror builders downstream. I'm removing it until we can decide a good way to do this, as it does seem important that this class not be discarded given it controls formatting. (cherry picked from commit 48987fb)
1 parent 72df434 commit ec4cc84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/MC/MCInstPrinter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MCInstPrinter {
9797

9898
class WithMarkup {
9999
public:
100-
[[nodiscard]] WithMarkup(raw_ostream &OS, Markup M, bool EnableMarkup,
100+
WithMarkup(raw_ostream &OS, Markup M, bool EnableMarkup,
101101
bool EnableColor);
102102
~WithMarkup();
103103

0 commit comments

Comments
 (0)