================
@@ -3330,6 +3348,17 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned
BuiltinID, CallExpr *TheCall) {
auto *ResourceTy =
TheCall->getArg(0)->getType()->castAs<HLSLAttributedResourceType>();
QualType ReturnType = ResourceTy->getContainedType();
+ // ByteAddressBuffer uses the FunctionDecl return type instead of the
+ // contained type
----------------
hekota wrote:
```suggestion
// Figure out the return type of the intrinsic. For most resources it
// is the contained type. For ByteAddressBuffer it is determined by
// the return value type.
```
https://github.com/llvm/llvm-project/pull/176058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits