Skip to content

Commit 948dd7d

Browse files
committed
Review comments
1 parent 0aa15ea commit 948dd7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4257,13 +4257,13 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
42574257
Diags.Report(diag::err_drv_hlsl_bad_shader_unsupported)
42584258
<< ShaderModel << T.getOSName() << T.str();
42594259
}
4260-
}
4261-
4262-
if (T.isSPIRVLogical()) {
4260+
} else if (T.isSPIRVLogical()) {
42634261
if (!T.isVulkanOS() || T.getVulkanVersion() == VersionTuple(0)) {
42644262
Diags.Report(diag::err_drv_hlsl_bad_shader_unsupported)
42654263
<< VulkanEnv << T.getOSName() << T.str();
42664264
}
4265+
} else {
4266+
llvm_unreachable();
42674267
}
42684268
} else
42694269
Diags.Report(diag::err_drv_hlsl_unsupported_target) << T.str();

0 commit comments

Comments
 (0)