mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
Fix dangling reference to temporary in use of ArrayRef
Fixes tests locally for me with MSVC 2015. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0fb2b6393
commit
c39e246447
@ -305,7 +305,9 @@ TEST(MappedBlockStreamTest, TestWriteThenRead) {
|
||||
ArrayRef<uint8_t> byteArrayRef0(byteArray0);
|
||||
ArrayRef<uint8_t> byteArrayRef1(byteArray1);
|
||||
ArrayRef<uint8_t> byteArray[] = { byteArrayRef0, byteArrayRef1 };
|
||||
ArrayRef<uint32_t> intArray[] = {{890723408, 29082234}, {0, 0}};
|
||||
uint32_t intArr0[] = {890723408, 29082234};
|
||||
uint32_t intArr1[] = {890723408, 29082234};
|
||||
ArrayRef<uint32_t> intArray[] = {intArr0, intArr1};
|
||||
|
||||
StreamReader Reader(S);
|
||||
StreamWriter Writer(S);
|
||||
|
Loading…
x
Reference in New Issue
Block a user