From ed35fdadaf4abe3708474bea2148aed56cbcd19f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 8 Jul 2016 16:57:14 +0000 Subject: [PATCH] Try to fix compilation error in DebugInfoPDBTests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274881 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index a166d605fda..e54f7ab1250 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -317,7 +317,9 @@ TEST(MappedBlockStreamTest, TestWriteThenRead) { StringRef FStr[] = {"Fixed Str", ""}; uint8_t byteArray0[] = {'1', '2'}; uint8_t byteArray1[] = {'0', '0'}; - ArrayRef byteArray[] = {byteArray0, byteArray1}; + ArrayRef byteArrayRef0(byteArray0); + ArrayRef byteArrayRef1(byteArray1); + ArrayRef byteArray[] = { byteArrayRef0, byteArrayRef1 }; ArrayRef intArray[] = {{890723408, 29082234}, {0, 0}}; StreamReader Reader(S); -- 2.50.1