================
@@ -3047,54 +3047,29 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned
BuiltinID, CallExpr *TheCall) {
break;
}
case Builtin::BI__builtin_hlsl_resource_uninitializedhandle: {
- if (SemaRef.checkArgCount(TheCall, 1) ||
- CheckResourceHandle(&SemaRef, TheCall, 0))
- return true;
+ assert(TheCall->getNumArgs() == 1 && "expected 1 arg");
// use the type of the handle (arg0) as a return type
----------------
bogner wrote:
Should we update this and the other similar comments to point out that what's
happening here is that we're updating the return type to one whose attributes
match that of the argument? As it's worded now is a bit confusing, because the
return type is already a resource type, just not an attributed one.
https://github.com/llvm/llvm-project/pull/163465
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits