@@ -878,7 +878,7 @@ std::optional<uint32_t> RootSignatureParser::handleUIntLiteral() {
878
878
assert (Literal.isIntegerLiteral () &&
879
879
" NumSpelling can only consist of digits" );
880
880
881
- llvm::APSInt Val = llvm::APSInt (32 , /* IsUnsigned=*/ true );
881
+ llvm::APSInt Val (32 , /* IsUnsigned=*/ true );
882
882
if (Literal.GetIntegerValue (Val)) {
883
883
// Report that the value has overflowed
884
884
PP.getDiagnostics ().Report (CurToken.TokLoc ,
@@ -901,7 +901,7 @@ std::optional<int32_t> RootSignatureParser::handleIntLiteral(bool Negated) {
901
901
assert (Literal.isIntegerLiteral () &&
902
902
" NumSpelling can only consist of digits" );
903
903
904
- llvm::APSInt Val = llvm::APSInt (32 , /* IsUnsigned=*/ true );
904
+ llvm::APSInt Val (32 , /* IsUnsigned=*/ true );
905
905
// GetIntegerValue will overwrite Val from the parsed Literal and return
906
906
// true if it overflows as a 32-bit unsigned int. Then check that it also
907
907
// doesn't overflow as a signed 32-bit int.
@@ -937,9 +937,8 @@ std::optional<float> RootSignatureParser::handleFloatLiteral(bool Negated) {
937
937
auto DXCSemantics = llvm::APFloat::Semantics::S_IEEEdouble;
938
938
auto DXCRoundingMode = llvm::RoundingMode::NearestTiesToEven;
939
939
940
- llvm::APFloat Val =
941
- llvm::APFloat (llvm::APFloat::EnumToSemantics (DXCSemantics));
942
- llvm::APFloat::opStatus Status = Literal.GetFloatValue (Val, DXCRoundingMode);
940
+ llvm::APFloat Val (llvm::APFloat::EnumToSemantics (DXCSemantics));
941
+ llvm::APFloat::opStatus Status (Literal.GetFloatValue (Val, DXCRoundingMode));
943
942
944
943
// Note: we do not error when opStatus::opInexact by itself as this just
945
944
// denotes that rounding occured but not that it is invalid
0 commit comments