From 6dbd4775bf7ab92befb6d359d3bdf82fee285462 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 22 Jul 2020 11:01:16 -0700 Subject: [PATCH] Fix Windows build --- lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp index 072fe6aaf0f9..63bb6b7c4043 100644 --- a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp +++ b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp @@ -363,7 +363,7 @@ TEST_F(SymbolFilePDBTests, TestSimpleClassTypes) { CompilerType compiler_type = udt_type->GetForwardCompilerType(); EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); EXPECT_EQ(GetGlobalConstantInteger(session, "sizeof_Class"), - udt_type->GetByteSize()); + udt_type->GetByteSize(nullptr)); } TEST_F(SymbolFilePDBTests, TestNestedClassTypes) { @@ -417,7 +417,7 @@ TEST_F(SymbolFilePDBTests, TestNestedClassTypes) { EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); EXPECT_EQ(GetGlobalConstantInteger(session, "sizeof_NestedClass"), - udt_type->GetByteSize()); + udt_type->GetByteSize(nullptr)); } TEST_F(SymbolFilePDBTests, TestClassInNamespace) { @@ -461,7 +461,7 @@ TEST_F(SymbolFilePDBTests, TestClassInNamespace) { EXPECT_TRUE(TypeSystemClang::IsClassType(compiler_type.GetOpaqueQualType())); EXPECT_EQ(GetGlobalConstantInteger(session, "sizeof_NSClass"), - udt_type->GetByteSize()); + udt_type->GetByteSize(nullptr)); } TEST_F(SymbolFilePDBTests, TestEnumTypes) { @@ -491,7 +491,7 @@ TEST_F(SymbolFilePDBTests, TestEnumTypes) { std::string sizeof_var = "sizeof_"; sizeof_var.append(Enum); EXPECT_EQ(GetGlobalConstantInteger(session, sizeof_var), - enum_type->GetByteSize()); + enum_type->GetByteSize(nullptr)); } } @@ -539,7 +539,7 @@ TEST_F(SymbolFilePDBTests, TestTypedefs) { std::string sizeof_var = "sizeof_"; sizeof_var.append(Typedef); EXPECT_EQ(GetGlobalConstantInteger(session, sizeof_var), - typedef_type->GetByteSize()); + typedef_type->GetByteSize(nullptr)); } } -- 2.34.1