[Mlir-commits] [mlir] [mlir][ODS] Fix default inferReturnTypes generation for variadic operands (PR #131483)

Jacques Pienaar llvmlistbot at llvm.org
Mon Apr 21 06:53:03 PDT 2025


================
@@ -2641,8 +2641,7 @@ void OpEmitter::genSeparateArgParamBuilder() {
 
       // Avoid emitting "resultTypes.size() >= 0u" which is always true.
       if (!hasVariadicResult || numNonVariadicResults != 0)
-        body << "  "
-             << "assert(resultTypes.size() "
+        body << "  " << "assert(resultTypes.size() "
----------------
jpienaar wrote:

Probably can remove the second << here and merge the strings, not sure its doing much here (if it were handling indentation other story)

https://github.com/llvm/llvm-project/pull/131483


More information about the Mlir-commits mailing list