summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp4
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; }
OpenPOWER on IntegriCloud