Skip to content

Commit 7a4382e

Browse files
author
joaosaffran
committed
address comments
1 parent 90f7403 commit 7a4382e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/include/llvm/BinaryFormat/DXContainerConstants.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ DESCRIPTOR_RANGE_FLAG(16, DESCRIPTORS_STATIC_KEEPING_BUFFER_BOUNDS_CHECKS)
100100

101101
// DESCRIPTOR_RANGE(value, name).
102102
#ifdef DESCRIPTOR_RANGE
103+
103104
DESCRIPTOR_RANGE(4, ERROR)
104105
DESCRIPTOR_RANGE(0, SRV)
105106
DESCRIPTOR_RANGE(1, UAV)

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static bool isFlagSet(uint32_t Flags, FlagTypes... FlagsToCheck) {
347347

348348
static bool verifyDescriptorRangeFlag(uint32_t Version, uint32_t Type,
349349
uint32_t Flags) {
350-
bool IsSampler =
350+
const bool IsSampler =
351351
(Type == llvm::to_underlying(dxbc::DescriptorRangeType::Sampler));
352352

353353
if (Version == 1) {

0 commit comments

Comments
 (0)