forked from OSchip/llvm-project
[mlir][ods] Custom builder with no params
Incorrect generation of custom build method without any params.
This commit is contained in:
parent
8e84972ab7
commit
80deb1e106
|
@ -1191,8 +1191,9 @@ void OpEmitter::genBuilder() {
|
||||||
std::string paramStr =
|
std::string paramStr =
|
||||||
skipParamGen ? params.str()
|
skipParamGen ? params.str()
|
||||||
: llvm::formatv("::mlir::OpBuilder &{0}, "
|
: llvm::formatv("::mlir::OpBuilder &{0}, "
|
||||||
"::mlir::OperationState &{1}, {2}",
|
"::mlir::OperationState &{1}{2}{3}",
|
||||||
builder, builderOpState, params)
|
builder, builderOpState,
|
||||||
|
params.empty() ? "" : ", ", params)
|
||||||
.str();
|
.str();
|
||||||
auto *method =
|
auto *method =
|
||||||
opClass.addMethodAndPrune("void", "build", properties, paramStr);
|
opClass.addMethodAndPrune("void", "build", properties, paramStr);
|
||||||
|
|
Loading…
Reference in New Issue