[Mlir-commits] [clang] [mlir] [mlir] Diagnose missing call result arrow (PR #206215)
Andy Kaylor
llvmlistbot at llvm.org
Fri Jul 10 09:43:18 PDT 2026
================
@@ -1388,8 +1388,11 @@ static ParseResult parseCallTypeAndResolveOperands(
}
SmallVector<Type> argTypes;
SmallVector<Type> resTypes;
+ SMLoc signatureLoc = parser.getCurrentLocation();
if (call_interface_impl::parseFunctionSignature(parser, argTypes, argAttrs,
resTypes, resultAttrs)) {
+ if (parser.getCurrentLocation() != signatureLoc)
----------------
andykaylor wrote:
Are you saying that in this case parseFunctionSignature reported an error but returned success()? This just looks like a workaround for a problem that should be addressed some other way.
https://github.com/llvm/llvm-project/pull/206215
More information about the Mlir-commits
mailing list