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 aa8a789 commit 09def94Copy full SHA for 09def94
heavy/lib/Nbdl/NbdlWriter.cpp
@@ -403,13 +403,13 @@ class FuncWriter : public NbdlWriter<FuncWriter> {
403
if (Body.empty())
404
return;
405
llvm::StringRef TypeStr = Op.getType();
406
- if (TypeStr.empty())
407
- TypeStr = "auto&&";
408
OS << "[&]";
409
// Write parameters.
410
OS << '(';
411
mlir::BlockArgument& Arg = Body.getArguments().front();
412
- OS << "nbdl::SameAs<" << TypeStr << "> auto&& "
+ if (!TypeStr.empty())
+ OS << "nbdl::SameAs<" << TypeStr << "> ";
+ OS << "auto&& "
413
<< SetLocalVarName(Arg, "arg_");
414
OS << ')';
415
OS << "{\n";
0 commit comments