Skip to content

Commit

Permalink
MappedBlockStreamTest.cpp: Appease msc18 to avoid initializer for std…
Browse files Browse the repository at this point in the history
…::vector.

llvm-svn: 271397
  • Loading branch information
chapuni committed Jun 1, 2016
1 parent a13a0e1 commit 47d1e37
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 47d1e37

Please sign in to comment.