From 47d1e37738efec45eddd128835ff988c11861396 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 1 Jun 2016 14:26:54 +0000 Subject: [PATCH] MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std::vector. llvm-svn: 271397 --- llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index b98a3c81ed663..b93423de7acca 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; }