[mlir] Reduce warnings for bad assertion in generated code
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. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D156819
Loading
Please sign in to comment