Skip to content

Commit fdcd3e3

Browse files
committed
removing consts
1 parent 83ee5fe commit fdcd3e3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/DirectX/DXILPostOptimizationValidation.cpp

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

284-
const bool IsSRVOrUAV =
285-
RC == ResourceClass::SRV || RC == ResourceClass::UAV;
286-
const bool IsDescriptorTable =
284+
bool IsSRVOrUAV = RC == ResourceClass::SRV || RC == ResourceClass::UAV;
285+
bool IsDescriptorTable =
287286
ParamInfo->Type == dxbc::RootParameterType::DescriptorTable;
288-
const bool IsRawOrStructuredBuffer =
287+
bool IsRawOrStructuredBuffer =
289288
RK != ResourceKind::RawBuffer && RK != ResourceKind::StructuredBuffer;
290289
if (IsSRVOrUAV && !IsDescriptorTable && IsRawOrStructuredBuffer) {
291290
reportInvalidHandleTyError(M, RC, Binding);

0 commit comments

Comments
 (0)