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 987347b commit 6c1e0a5Copy full SHA for 6c1e0a5
heavy/lib/Nbdl/NbdlWriter.cpp
@@ -529,7 +529,7 @@ class FuncWriter : public NbdlWriter<FuncWriter> {
529
llvm::StringRef TypeStr = Op.getType();
530
OS << "[&]";
531
// Write parameters.
532
- OS << '(';
+ OS << "([[maybe_unused]] ";
533
mlir::BlockArgument& Arg = Body.getArguments().front();
534
if (!TypeStr.empty())
535
OS << "::nbdl::SameAs<" << TypeStr << "> ";
@@ -633,6 +633,7 @@ class DefineStoreWriter : public NbdlWriter<DefineStoreWriter> {
633
OS << "class " << Name << " : public nbdl::strong_alias<";
634
VisitType(V);
635
OS << "> {\n"
636
+ "public:\n"
637
"using Base = nbdl::strong_alias<";
638
639
OS << ">;\n";
0 commit comments