When the operation has no attributes, the generated assertion is
always false and triggers lots of warnings in the build.
warning: comparison of unsigned expression < 0 is always false
Just return a StringAttr when there is no attribute.
Differential D156819
[mlir] Reduce warnings for bad assertion in generated code clementval on Aug 1 2023, 10:53 AM. Authored by
Details When the operation has no attributes, the generated assertion is warning: comparison of unsigned expression < 0 is always false Just return a StringAttr when there is no attribute.
Diff Detail
|