Skip to content

Commit ba4e2ae

Browse files
committed
review: spell out types
1 parent 265c729 commit ba4e2ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,17 +740,17 @@ std::optional<float> RootSignatureParser::parseFloatParam() {
740740

741741
// DXC will treat a postive signed integer as unsigned
742742
if (!Negated && tryConsumeExpectedToken(TokenKind::int_literal)) {
743-
auto UInt = handleUIntLiteral();
743+
std::optional<uint32_t> UInt = handleUIntLiteral();
744744
if (!UInt.has_value())
745745
return std::nullopt;
746746
return (float)UInt.value();
747747
} else if (tryConsumeExpectedToken(TokenKind::int_literal)) {
748-
auto Int = handleIntLiteral(Negated);
748+
std::optional<int32_t> = handleIntLiteral(Negated);
749749
if (!Int.has_value())
750750
return std::nullopt;
751751
return (float)Int.value();
752752
} else if (tryConsumeExpectedToken(TokenKind::float_literal)) {
753-
auto Float = handleFloatLiteral(Negated);
753+
std::optional<float> Float = handleFloatLiteral(Negated);
754754
if (!Float.has_value())
755755
return std::nullopt;
756756
return Float.value();

0 commit comments

Comments
 (0)