Skip to content

Commit

Permalink
clang-format & some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hekota committed Jan 17, 2025
1 parent 1d04bfa commit cd28366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions clang/lib/CodeGen/CGHLSLRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void CGHLSLRuntime::generateGlobalCtorDtorCalls() {
}
}

// Returns true if the record type is an HLSL resource class
// Returns true if the type is an HLSL resource class
static bool isResourceRecordType(const clang::Type *Ty) {
return HLSLAttributedResourceType::findHandleTypeOnResource(Ty) != nullptr;
}
Expand Down Expand Up @@ -602,7 +602,8 @@ void CGHLSLRuntime::handleGlobalVarDefinition(const VarDecl *VD,
// for the resource
const HLSLResourceBindingAttr *RBA = VD->getAttr<HLSLResourceBindingAttr>();
if (!RBA)
// FIXME: collect unbound resources for implicit binding resolution later on?
// FIXME: collect unbound resources for implicit binding resolution later
// on?
return;

if (!isResourceRecordType(VD->getType().getTypePtr()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ RasterizerOrderedByteAddressBuffer Buffer2: register(u3, space4);
// CHECK: call void @_init_resource_Buffer0()
// CHECK: call void @_init_resource_Buffer1()
// CHECK: call void @_init_resource_Buffer2()

0 comments on commit cd28366

Please sign in to comment.