diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-11 06:37:28 +0000 | 
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-11 06:37:28 +0000 | 
| commit | f1b183c4024710ea82fb0a580d7ed392acb77048 (patch) | |
| tree | 58e53613915411203f8b25b4bb87768c6714de45 | |
| parent | c41e081f715e59428b483fd90e389ba3813d3d07 (diff) | |
| download | bcm5719-llvm-f1b183c4024710ea82fb0a580d7ed392acb77048.tar.gz bcm5719-llvm-f1b183c4024710ea82fb0a580d7ed392acb77048.zip  | |
DebugInfoPDBTests:MappedBlockStreamTest.TestWriteThenRead: Avoid assigning temporary object to ArrayRef.
llvm-svn: 272457
| -rw-r--r-- | llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index 7ed29005791..a166d605fda 100644 --- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/llvm/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<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);  | 

