From: Adrian Prantl Date: Wed, 22 Jul 2020 18:01:16 +0000 (-0700) Subject: Fix Windows build X-Git-Tag: llvmorg-13-init~17116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dbd4775bf7ab92befb6d359d3bdf82fee285462;p=platform%2Fupstream%2Fllvm.git Fix Windows build --- diff --git a/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp b/lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp index 072fe6a..63bb6b7 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)); } }