Skip to content

Commit 6912198

Browse files
committed
nfc: clean-up review comment from previous pr
1 parent 81e6e05 commit 6912198

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,9 @@ bool RootSignatureParser::parse() {
4242
}
4343
} while (tryConsumeExpectedToken(TokenKind::pu_comma));
4444

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;
45+
return consumeExpectedToken(TokenKind::end_of_stream,
46+
diag::err_hlsl_unexpected_end_of_params,
47+
/*param of=*/TokenKind::kw_RootSignature));
5148
}
5249

5350
std::optional<RootConstants> RootSignatureParser::parseRootConstants() {

0 commit comments

Comments
 (0)