From 76efceecfb691bdbe1ac27eac25757dede61c305 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sat, 11 Jun 2016 06:37:28 +0000 Subject: [PATCH] DebugInfoPDBTests:MappedBlockStreamTest.TestWriteThenRead: Avoid assigning temporary object to ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272457 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 7ed29005791..a166d605fda 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -315,7 +315,9 @@ TEST(MappedBlockStreamTest, TestWriteThenRead) { MyEnum Enum[] = {MyEnum::Val1, MyEnum::Val2}; StringRef ZStr[] = {"Zero Str", ""}; StringRef FStr[] = {"Fixed Str", ""}; - ArrayRef byteArray[] = {{'1', '2'}, {'0', '0'}}; + uint8_t byteArray0[] = {'1', '2'}; + uint8_t byteArray1[] = {'0', '0'}; + ArrayRef byteArray[] = {byteArray0, byteArray1}; ArrayRef intArray[] = {{890723408, 29082234}, {0, 0}}; StreamReader Reader(S); -- 2.50.1