diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-01 22:59:06 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-06-01 22:59:06 +0000 |
commit | f021d269992ef36f2c97ae707dfd7d6c0b38753c (patch) | |
tree | c2871a91617e56907b9801832697a26edb9b463d /llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | |
parent | 92539049967433a72b67f3a0feab82987da4bd54 (diff) | |
download | bcm5719-llvm-f021d269992ef36f2c97ae707dfd7d6c0b38753c.tar.gz bcm5719-llvm-f021d269992ef36f2c97ae707dfd7d6c0b38753c.zip |
MappedBlockStreamTest.cpp: Simplify array initializers.
llvm-svn: 271439
Diffstat (limited to 'llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp')
-rw-r--r-- | llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index f8af3a04986..769a4e35f74 100644 --- a/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -44,8 +44,8 @@ static const char DataAry[] = {'A', 'B', 'C', 'F', 'E', class DiscontiguousFile : public IPDBFile { public: DiscontiguousFile() - : Blocks(&BlocksAry[0], &BlocksAry[10]), Data(&DataAry[0], &DataAry[10]) { - } + : Blocks(std::begin(BlocksAry), std::end(BlocksAry)), + Data(makeArrayRef(DataAry)) {} virtual uint32_t getBlockSize() const override { return 1; } virtual uint32_t getBlockCount() const override { return 10; } |