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 | d76edeb3baf4d2a5dfc86d695aadc8cda8ab8600 (patch) | |
tree | 12e929a7453a0b48752fce11b9a7fcc7aa8976e1 /unittests | |
parent | 2f6da59b68ca8a63795bc654f242a2f5da6d890c (diff) |
MappedBlockStreamTest.cpp: Simplify array initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index f8af3a04986..769a4e35f74 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/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; } |