@@ -1883,8 +1883,7 @@ TEST_F(DWARFASTParserClangTests, TestBitIntParsing) {
18831883 EXPECT_EQ (
18841884 llvm::expectedToOptional (type_sp->GetByteSize (nullptr )).value_or (0 ),
18851885 1U );
1886- uint64_t count;
1887- EXPECT_EQ (type_sp->GetEncoding (count), lldb::eEncodingSint);
1886+ EXPECT_EQ (type_sp->GetEncoding (), lldb::eEncodingSint);
18881887 EXPECT_EQ (type_sp->GetName (), " _BitInt(2)" );
18891888 EXPECT_EQ (type_sp->GetForwardCompilerType ().GetTypeName (), " _BitInt(2)" );
18901889 }
@@ -1899,8 +1898,7 @@ TEST_F(DWARFASTParserClangTests, TestBitIntParsing) {
18991898 EXPECT_EQ (
19001899 llvm::expectedToOptional (type_sp->GetByteSize (nullptr )).value_or (0 ),
19011900 8U );
1902- uint64_t count;
1903- EXPECT_EQ (type_sp->GetEncoding (count), lldb::eEncodingSint);
1901+ EXPECT_EQ (type_sp->GetEncoding (), lldb::eEncodingSint);
19041902 EXPECT_EQ (type_sp->GetName (), " _BitInt" );
19051903 EXPECT_EQ (type_sp->GetForwardCompilerType ().GetTypeName (), " _BitInt(52)" );
19061904 }
@@ -1915,8 +1913,7 @@ TEST_F(DWARFASTParserClangTests, TestBitIntParsing) {
19151913 EXPECT_EQ (
19161914 llvm::expectedToOptional (type_sp->GetByteSize (nullptr )).value_or (0 ),
19171915 1U );
1918- uint64_t count;
1919- EXPECT_EQ (type_sp->GetEncoding (count), lldb::eEncodingUint);
1916+ EXPECT_EQ (type_sp->GetEncoding (), lldb::eEncodingUint);
19201917 EXPECT_EQ (type_sp->GetName (), " unsigned _BitInt(2)" );
19211918 EXPECT_EQ (type_sp->GetForwardCompilerType ().GetTypeName (),
19221919 " unsigned _BitInt(2)" );
@@ -1932,8 +1929,7 @@ TEST_F(DWARFASTParserClangTests, TestBitIntParsing) {
19321929 EXPECT_EQ (
19331930 llvm::expectedToOptional (type_sp->GetByteSize (nullptr )).value_or (0 ),
19341931 8U );
1935- uint64_t count;
1936- EXPECT_EQ (type_sp->GetEncoding (count), lldb::eEncodingUint);
1932+ EXPECT_EQ (type_sp->GetEncoding (), lldb::eEncodingUint);
19371933 EXPECT_EQ (type_sp->GetName (), " unsigned _BitInt" );
19381934 EXPECT_EQ (type_sp->GetForwardCompilerType ().GetTypeName (),
19391935 " unsigned _BitInt(52)" );
@@ -1949,8 +1945,7 @@ TEST_F(DWARFASTParserClangTests, TestBitIntParsing) {
19491945 EXPECT_EQ (
19501946 llvm::expectedToOptional (type_sp->GetByteSize (nullptr )).value_or (0 ),
19511947 8U );
1952- uint64_t count;
1953- EXPECT_EQ (type_sp->GetEncoding (count), lldb::eEncodingSint);
1948+ EXPECT_EQ (type_sp->GetEncoding (), lldb::eEncodingSint);
19541949 EXPECT_EQ (type_sp->GetName (), " _BitInt" );
19551950
19561951 // Older versions of Clang didn't emit a DW_AT_bit_size for _BitInt. In
0 commit comments