File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 12
12
#include " clang/Driver/DriverDiagnostic.h"
13
13
#include " clang/Driver/Job.h"
14
14
#include " llvm/ADT/StringSwitch.h"
15
- #include " llvm/Support/ErrorHandling.h"
16
15
#include " llvm/TargetParser/Triple.h"
17
16
#include < optional>
18
- #include < string>
19
17
20
18
using namespace clang ::driver;
21
19
using namespace clang ::driver::tools;
@@ -39,9 +37,8 @@ bool isLegalShaderModel(Triple &T) {
39
37
return false ;
40
38
41
39
// DXIL Version should be set as SubArch
42
- if (T.getSubArch () == Triple::NoSubArch) {
40
+ if (T.getSubArch () == Triple::NoSubArch)
43
41
return false ;
44
- }
45
42
46
43
auto Kind = T.getEnvironment ();
47
44
@@ -140,8 +137,7 @@ std::optional<std::string> tryParseProfile(StringRef Profile) {
140
137
case 8 :
141
138
SubArch = llvm::Triple::DXILSubArch_v1_8;
142
139
break ;
143
- }
144
- if (SubArch == llvm::Triple::NoSubArch) {
140
+ default :
145
141
// No DXIL Version corresponding to specified Shader Model version found
146
142
return std::nullopt;
147
143
}
You can’t perform that action at this time.
0 commit comments