projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c145c
)
Fix dangling reference to temporary in use of ArrayRef
author
Reid Kleckner
<rnk@google.com>
Thu, 28 Jul 2016 18:17:01 +0000
(18:17 +0000)
committer
Reid Kleckner
<rnk@google.com>
Thu, 28 Jul 2016 18:17:01 +0000
(18:17 +0000)
Fixes tests locally for me with MSVC 2015.
llvm-svn: 277015
llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
index
0762ef8
..
9be9845
100644
(file)
--- a/
llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
+++ b/
llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
@@
-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);