File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
include/llvm/Frontend/HLSL Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 15
15
#define LLVM_FRONTEND_HLSL_ROOTSIGNATUREMETADATA_H
16
16
17
17
#include " llvm/ADT/StringRef.h"
18
- #include " llvm/BinaryFormat/DXContainer.h"
19
18
#include " llvm/Frontend/HLSL/HLSLRootSignature.h"
20
19
#include " llvm/IR/Constants.h"
21
20
#include " llvm/MC/DXContainerRootSignature.h"
@@ -42,6 +41,7 @@ toResourceClass(dxbc::DescriptorRangeType RangeType) {
42
41
case DescriptorRangeType::Sampler:
43
42
return dxil::ResourceClass::Sampler;
44
43
}
44
+ llvm_unreachable (" Unknown DescriptorRangeType" );
45
45
}
46
46
47
47
inline dxil::ResourceClass toResourceClass (dxbc::RootParameterType Type) {
@@ -56,9 +56,9 @@ inline dxil::ResourceClass toResourceClass(dxbc::RootParameterType Type) {
56
56
case RootParameterType::CBV:
57
57
return dxil::ResourceClass::CBuffer;
58
58
case dxbc::RootParameterType::DescriptorTable:
59
- break ;
59
+ llvm_unreachable ( " DescriptorTable is not convertible to ResourceClass " ) ;
60
60
}
61
- llvm_unreachable (" Unconvertible RootParameterType" );
61
+ llvm_unreachable (" Unknown RootParameterType" );
62
62
}
63
63
64
64
template <typename T>
Original file line number Diff line number Diff line change 15
15
#include " llvm/Frontend/HLSL/RootSignatureValidations.h"
16
16
#include " llvm/IR/IRBuilder.h"
17
17
#include " llvm/IR/Metadata.h"
18
- #include " llvm/Support/Error.h"
19
18
#include " llvm/Support/ScopedPrinter.h"
20
- #include < cstdint>
21
19
22
20
using namespace llvm ;
23
21
You can’t perform that action at this time.
0 commit comments