[clang] [llvm] [HLSL] Add implicit resource element type concepts to AST (PR #116413)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 22 15:46:41 PST 2024
================
@@ -5720,8 +5720,7 @@ static bool EvaluateUnaryTypeTrait(Sema &Self, TypeTrait UTT,
case UTT_IsTypedResourceElementCompatible:
assert(Self.getLangOpts().HLSL &&
"typed resource element compatible types are an HLSL-only feature");
- if (Self.RequireCompleteType(TInfo->getTypeLoc().getBeginLoc(), T,
- diag::err_incomplete_type))
+ if (T->isIncompleteType())
----------------
bogner wrote:
This doesn't look right - why did we need to change the general handling of evaluating type traits?
https://github.com/llvm/llvm-project/pull/116413
More information about the cfe-commits
mailing list