Skip to content

Commit f3d9605

Browse files
committed
fix merge
1 parent 03da2d1 commit f3d9605

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static void initializeBufferFromBinding(CodeGenModule &CGM,
546546
auto *Space =
547547
llvm::ConstantInt::get(CGM.IntTy, RBA ? RBA->getSpaceNumber() : 0);
548548

549-
if (!RBA->isImplicit()) {
549+
if (RBA->hasRegisterSlot()) {
550550
auto *RegSlot = llvm::ConstantInt::get(CGM.IntTy, RBA->getSlotNumber());
551551
Intrinsic::ID Intr =
552552
CGM.getHLSLRuntime().getCreateHandleFromBindingIntrinsic();

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void SemaHLSL::ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace) {
559559
createHostLayoutStructForBuffer(SemaRef, BufDecl);
560560

561561
HLSLResourceBindingAttr *RBA = Dcl->getAttr<HLSLResourceBindingAttr>();
562-
if (!RBA || RBA->isImplicit()) {
562+
if (!RBA || !RBA->hasRegisterSlot()) {
563563
SemaRef.Diag(Dcl->getLocation(), diag::warn_hlsl_implicit_binding);
564564
// Use HLSLResourceBindingAttr to transfer implicit binding order_ID
565565
// to codegen. If it does not exist, create an implicit attribute.

0 commit comments

Comments
 (0)