================ @@ -4057,6 +4057,10 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, NewQType)) return MergeCompatibleFunctionDecls(New, Old, S, MergeTypeWithOld); + if (getLangOpts().HLSL && Context.hasSameFunctionTypeIgnoringParamABI( ---------------- efriedma-quic wrote:
Earlier would be more consistent with how other checks like CheckEquivalentExceptionSpec work, I think? I'm mostly concerned that this logic is twisted in a way that's hard to understand... https://github.com/llvm/llvm-project/pull/101083 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits