]> granicus.if.org Git - llvm/commitdiff
Try to fix compilation error in DebugInfoPDBTests.
authorZachary Turner <zturner@google.com>
Fri, 8 Jul 2016 16:57:14 +0000 (16:57 +0000)
committerZachary Turner <zturner@google.com>
Fri, 8 Jul 2016 16:57:14 +0000 (16:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274881 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp

index a166d605fda09481b7479212374ccb76150e5acf..e54f7ab125048d43164ac0102d04c8efc0f77d00 100644 (file)
@@ -317,7 +317,9 @@ TEST(MappedBlockStreamTest, TestWriteThenRead) {
   StringRef FStr[] = {"Fixed Str", ""};
   uint8_t byteArray0[] = {'1', '2'};
   uint8_t byteArray1[] = {'0', '0'};
-  ArrayRef<uint8_t> byteArray[] = {byteArray0, byteArray1};
+  ArrayRef<uint8_t> byteArrayRef0(byteArray0);
+  ArrayRef<uint8_t> byteArrayRef1(byteArray1);
+  ArrayRef<uint8_t> byteArray[] = { byteArrayRef0, byteArrayRef1 };
   ArrayRef<uint32_t> intArray[] = {{890723408, 29082234}, {0, 0}};
 
   StreamReader Reader(S);