diff --git a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index e33490c237e..61b8492038f 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -61,14 +61,14 @@ public: return ArrayRef(); return Blocks; } - virtual StringRef getBlockData(uint32_t BlockIndex, - uint32_t NumBytes) const override { - return StringRef(&Data[BlockIndex], NumBytes); + virtual ArrayRef getBlockData(uint32_t BlockIndex, + uint32_t NumBytes) const override { + return ArrayRef(&Data[BlockIndex], NumBytes); } private: std::vector Blocks; - std::vector Data; + std::vector Data; }; // Tests that a read which is entirely contained within a single block works