[clang] [HLSL] Implement output parameter (PR #101083)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 29 14:24:49 PDT 2024
================
@@ -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:
Could you explain a bit more what you're doing here? At first glance, functions with different out/inout markings aren't compatible.
https://github.com/llvm/llvm-project/pull/101083
More information about the cfe-commits
mailing list