We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e6e05 commit 6912198Copy full SHA for 6912198
clang/lib/Parse/ParseHLSLRootSignature.cpp
@@ -42,12 +42,9 @@ bool RootSignatureParser::parse() {
42
}
43
} while (tryConsumeExpectedToken(TokenKind::pu_comma));
44
45
- if (consumeExpectedToken(TokenKind::end_of_stream,
46
- diag::err_hlsl_unexpected_end_of_params,
47
- /*param of=*/TokenKind::kw_RootSignature))
48
- return true;
49
-
50
- return false;
+ return consumeExpectedToken(TokenKind::end_of_stream,
+ diag::err_hlsl_unexpected_end_of_params,
+ /*param of=*/TokenKind::kw_RootSignature));
51
52
53
std::optional<RootConstants> RootSignatureParser::parseRootConstants() {
0 commit comments