[llvm] r305753 - Try to fix uninitialized read in unit test.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 14:59:09 PDT 2017


Author: zturner
Date: Mon Jun 19 16:59:09 2017
New Revision: 305753

URL: http://llvm.org/viewvc/llvm-project?rev=305753&view=rev
Log:
Try to fix uninitialized read in unit test.

Modified:
    llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp

Modified: llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp?rev=305753&r1=305752&r2=305753&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp Mon Jun 19 16:59:09 2017
@@ -360,6 +360,7 @@ TEST_F(RandomAccessVisitorTest, CrossChu
   Class.Name = "FooClass";
   Class.Options = ClassOptions::None;
   Class.MemberCount = 0;
+  Class.Size = 4U;
   Class.DerivationList = TypeIndex::fromArrayIndex(0);
   Class.FieldList = TypeIndex::fromArrayIndex(0);
   Class.VTableShape = TypeIndex::fromArrayIndex(0);




More information about the llvm-commits mailing list