[llvm] r327666 - Fix structure alignment issue.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 15 14:12:51 PDT 2018
Author: zturner
Date: Thu Mar 15 14:12:51 2018
New Revision: 327666
URL: http://llvm.org/viewvc/llvm-project?rev=327666&view=rev
Log:
Fix structure alignment issue.
Modified:
llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp?rev=327666&r1=327665&r2=327666&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/HashTableTest.cpp Thu Mar 15 14:12:51 2018
@@ -195,10 +195,8 @@ TEST(HashTableTest, NamedStreamMap) {
namespace {
struct FooBar {
- std::string S;
uint32_t X;
uint32_t Y;
- double Z;
};
} // namespace
@@ -236,10 +234,8 @@ TEST(HashTableTest, NonTrivialValueType)
uint32_t Cap = Table.capacity();
for (uint32_t I = 0; I < Cap; ++I) {
FooBar F;
- F.S = utostr(I);
F.X = I;
F.Y = I + 1;
- F.Z = static_cast<double>(I + 2);
Table.set_as(utostr(I), F);
}
More information about the llvm-commits
mailing list