Skip to content

Commit b3bc8b8

Browse files
committed
renaming SRVorUAV flag
1 parent 8cccaf3 commit b3bc8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ static void validateRootSignature(Module &M,
281281
const auto *ParamInfo =
282282
static_cast<const mcdxbc::RootParameterInfo *>(Reg->Cookie);
283283

284-
const bool IsRootSRVOrUAV =
284+
const bool IsSRVOrUAV =
285285
RC == ResourceClass::SRV || RC == ResourceClass::UAV;
286286
const bool IsDescriptorTable =
287287
ParamInfo->Type == dxbc::RootParameterType::DescriptorTable;
288288
const bool IsRawOrStructuredBuffer =
289289
RK != ResourceKind::RawBuffer && RK != ResourceKind::StructuredBuffer;
290-
if (IsRootSRVOrUAV && !IsDescriptorTable && IsRawOrStructuredBuffer) {
290+
if (IsSRVOrUAV && !IsDescriptorTable && IsRawOrStructuredBuffer) {
291291
reportInvalidHandleTyError(M, RC, Binding);
292292
continue;
293293
}

0 commit comments

Comments
 (0)