Skip to content

Commit fa60959

Browse files
committed
clean up
1 parent 7ada31b commit fa60959

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,6 @@ bool SemaHLSL::handleRootSignatureElements(
12521252
case llvm::dxil::ResourceClass::Sampler:
12531253
return llvm::dxbc::DescriptorRangeType::Sampler;
12541254
}
1255-
12561255
llvm_unreachable("Unhandled Resource Class");
12571256
};
12581257

@@ -1297,6 +1296,7 @@ bool SemaHLSL::handleRootSignatureElements(
12971296
// value
12981297
ReportError(Loc, 1, 0xfffffffe);
12991298
}
1299+
13001300
if (!llvm::hlsl::rootsig::verifyDescriptorRangeFlag(
13011301
Version, toDescriptorRangeType(Clause->Type), Clause->Flags))
13021302
ReportFlagError(Loc);

llvm/lib/Frontend/HLSL/RootSignatureValidations.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ bool verifyDescriptorRangeFlag(uint32_t Version, dxbc::DescriptorRangeType Type,
122122
}
123123
return (Flags & ~Mask) == FlagT::None;
124124
}
125-
126-
// This is included to avoid including BinaryFormat/DXContainer to make the
127-
// flags conversion, since this might cause compilation times to increase.
128125
bool verifyDescriptorRangeFlag(uint32_t Version, dxbc::DescriptorRangeType Type,
129126
uint32_t Flags) {
130127
return verifyDescriptorRangeFlag(Version, Type,

0 commit comments

Comments
 (0)