================
@@ -15692,6 +15692,12 @@ ExprResult Sema::BuildBinOp(Scope *S, SourceLocation
OpLoc,
RHSExpr = resolvedRHS.get();
}
+ if (getLangOpts().HLSL && (LHSExpr->getType()->isHLSLResourceRecord() ||
+ LHSExpr->getType()->isHLSLResourceRecordArray()))
{
+ if (!HLSL().CheckResourceBinOp(Opc, LHSExpr, RHSExpr, OpLoc))
+ return ExprError();
----------------
farzonl wrote:
should we just make this one conditional so there is no fall through case?
https://github.com/llvm/llvm-project/pull/157772
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits