summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-06-01 14:26:54 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-06-01 14:26:54 +0000
commit47d1e37738efec45eddd128835ff988c11861396 (patch)
treee9d2a175971bfc09f909d712a93d45558bef72f4 /llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
parenta13a0e1aeab04b6f23bfcd2b4fad961265dea08e (diff)
downloadbcm5719-llvm-47d1e37738efec45eddd128835ff988c11861396.tar.gz
bcm5719-llvm-47d1e37738efec45eddd128835ff988c11861396.zip
MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std::vector.
llvm-svn: 271397
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp')
-rw-r--r--llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
index b98a3c81ed6..b93423de7ac 100644
--- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
+++ b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
@@ -37,11 +37,15 @@ namespace {
consumeError(std::move(E)); \
}
+static const uint32_t BlocksAry[] = {0, 1, 2, 5, 4, 3, 6, 7, 8, 9};
+static const char DataAry[] = {'A', 'B', 'C', 'F', 'E',
+ 'D', 'G', 'H', 'I', 'J'};
+
class DiscontiguousFile : public IPDBFile {
public:
DiscontiguousFile()
- : Blocks{0, 1, 2, 5, 4, 3, 6, 7, 8, 9},
- Data{'A', 'B', 'C', 'F', 'E', 'D', 'G', 'H', 'I', 'J'} {}
+ : Blocks(&BlocksAry[0], &BlocksAry[10]), Data(&DataAry[0], &DataAry[10]) {
+ }
virtual uint32_t getBlockSize() const override { return 1; }
virtual uint32_t getBlockCount() const override { return 10; }
OpenPOWER on IntegriCloud