@@ -371,7 +371,7 @@ TEST_F(SymbolFilePDBTests, TestSimpleClassTypes) {
371
371
CompilerType compiler_type = udt_type->GetForwardCompilerType ();
372
372
EXPECT_TRUE (TypeSystemClang::IsClassType (compiler_type.GetOpaqueQualType ()));
373
373
EXPECT_EQ (GetGlobalConstantInteger (session, " sizeof_Class" ),
374
- udt_type->GetByteSize (nullptr ));
374
+ llvm::expectedToOptional ( udt_type->GetByteSize (nullptr ) ));
375
375
}
376
376
377
377
TEST_F (SymbolFilePDBTests, TestNestedClassTypes) {
@@ -427,7 +427,7 @@ TEST_F(SymbolFilePDBTests, TestNestedClassTypes) {
427
427
EXPECT_TRUE (TypeSystemClang::IsClassType (compiler_type.GetOpaqueQualType ()));
428
428
429
429
EXPECT_EQ (GetGlobalConstantInteger (session, " sizeof_NestedClass" ),
430
- udt_type->GetByteSize (nullptr ));
430
+ llvm::expectedToOptional ( udt_type->GetByteSize (nullptr ) ));
431
431
}
432
432
433
433
TEST_F (SymbolFilePDBTests, TestClassInNamespace) {
@@ -471,7 +471,7 @@ TEST_F(SymbolFilePDBTests, TestClassInNamespace) {
471
471
EXPECT_TRUE (TypeSystemClang::IsClassType (compiler_type.GetOpaqueQualType ()));
472
472
473
473
EXPECT_EQ (GetGlobalConstantInteger (session, " sizeof_NSClass" ),
474
- udt_type->GetByteSize (nullptr ));
474
+ llvm::expectedToOptional ( udt_type->GetByteSize (nullptr ) ));
475
475
}
476
476
477
477
TEST_F (SymbolFilePDBTests, TestEnumTypes) {
@@ -501,7 +501,7 @@ TEST_F(SymbolFilePDBTests, TestEnumTypes) {
501
501
std::string sizeof_var = " sizeof_" ;
502
502
sizeof_var.append (Enum);
503
503
EXPECT_EQ (GetGlobalConstantInteger (session, sizeof_var),
504
- enum_type->GetByteSize (nullptr ));
504
+ llvm::expectedToOptional ( enum_type->GetByteSize (nullptr ) ));
505
505
}
506
506
}
507
507
@@ -547,7 +547,7 @@ TEST_F(SymbolFilePDBTests, TestTypedefs) {
547
547
std::string sizeof_var = " sizeof_" ;
548
548
sizeof_var.append (Typedef);
549
549
EXPECT_EQ (GetGlobalConstantInteger (session, sizeof_var),
550
- typedef_type->GetByteSize (nullptr ));
550
+ llvm::expectedToOptional ( typedef_type->GetByteSize (nullptr ) ));
551
551
}
552
552
}
553
553
0 commit comments