From: NAKAMURA Takumi Date: Sat, 11 Jun 2016 06:37:28 +0000 (+0000) Subject: DebugInfoPDBTests:MappedBlockStreamTest.TestWriteThenRead: Avoid assigning temporary... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76efceecfb691bdbe1ac27eac25757dede61c305;p=llvm 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 --- 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);