Author: Helena Kotas Date: 2025-09-02T21:57:41-07:00 New Revision: a9532191b82b02e6690e13fb72f513ab16119652
URL: https://github.com/llvm/llvm-project/commit/a9532191b82b02e6690e13fb72f513ab16119652 DIFF: https://github.com/llvm/llvm-project/commit/a9532191b82b02e6690e13fb72f513ab16119652.diff LOG: [HLSL][NFC] Add assert to verify implicit binding resource attribute exists (#156094) Adds assert as requested in https://github.com/llvm/llvm-project/pull/152454#discussion_r2304509802. Added: Modified: clang/lib/CodeGen/CGHLSLRuntime.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGHLSLRuntime.cpp b/clang/lib/CodeGen/CGHLSLRuntime.cpp index 442d8505cc0ed..d27f3781c69a3 100644 --- a/clang/lib/CodeGen/CGHLSLRuntime.cpp +++ b/clang/lib/CodeGen/CGHLSLRuntime.cpp @@ -182,6 +182,7 @@ static void createResourceCtorArgs(CodeGenModule &CGM, CXXConstructorDecl *CD, } else { // implicit binding + assert(RBA && "missing implicit binding attribute"); auto *OrderID = llvm::ConstantInt::get(CGM.IntTy, RBA->getImplicitBindingOrderID()); Args.add(RValue::get(Space), AST.UnsignedIntTy); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
