1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

DebugInfoPDBTests:MappedBlockStreamTest.TestWriteThenRead: Avoid assigning temporary object to ArrayRef.

llvm-svn: 272457
This commit is contained in:
NAKAMURA Takumi 2016-06-11 06:37:28 +00:00
parent a4ac14ea38
commit 62479a2a36

View File

@ -315,7 +315,9 @@ TEST(MappedBlockStreamTest, TestWriteThenRead) {
MyEnum Enum[] = {MyEnum::Val1, MyEnum::Val2};
StringRef ZStr[] = {"Zero Str", ""};
StringRef FStr[] = {"Fixed Str", ""};
ArrayRef<uint8_t> byteArray[] = {{'1', '2'}, {'0', '0'}};
uint8_t byteArray0[] = {'1', '2'};
uint8_t byteArray1[] = {'0', '0'};
ArrayRef<uint8_t> byteArray[] = {byteArray0, byteArray1};
ArrayRef<uint32_t> intArray[] = {{890723408, 29082234}, {0, 0}};
StreamReader Reader(S);