================ @@ -11016,7 +11016,7 @@ def err_sizeless_nonlocal : Error< def err_vec_masked_load_store_ptr : Error< "%ordinal0 argument must be a %1">; def err_vec_masked_load_store_size : Error< - "all arguments to %0 must have the same number of elements (was %1 and %2)">; + "all arguments must have the same number of elements (was %0 and %1)">; ---------------- erichkeane wrote:
You might be able to have it still work by doing `TheCall->getDirectCallee()` and just emitting that (should give you a `FunctionDecl` which you SHOULD be able to `<<` directly for our diagnostics. Else, `TheCall->getBuiltinCallee()` gets you the number, and you can either do a ternary on it, or more reliably, you can send to `getASTContext().BuiltinInfo.getName` (or `getQuotedName`). We typically DO mention the name of the thing being called (at least in notes) when arguments aren't right. BUT most don't happen in an error, most happen in a followup note (though it doesn't really seem particularly valuable to split out the diag here into 2). https://github.com/llvm/llvm-project/pull/156042 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits