Skip to content

Commit 9df037d

Browse files
committed
add helpful comment that a condition is unreachable
1 parent 00b2c61 commit 9df037d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ HLSLToolChain::TranslateArgs(const DerivedArgList &Args, StringRef BoundArch,
304304
}
305305

306306
if (!parsedTargetProfile.has_value())
307+
// This should be unreachable, target profile validation happens
308+
// before this point.
307309
return DAL;
308310
else {
309311
if (parsedTargetProfile.value().Major < 6 ||

0 commit comments

Comments
 (0)