[llvm] r271439 - MappedBlockStreamTest.cpp: Simplify array initializers.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 15:59:08 PDT 2016
Author: chapuni
Date: Wed Jun 1 17:59:06 2016
New Revision: 271439
URL: http://llvm.org/viewvc/llvm-project?rev=271439&view=rev
Log:
MappedBlockStreamTest.cpp: Simplify array initializers.
Modified:
llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp?rev=271439&r1=271438&r2=271439&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp Wed Jun 1 17:59:06 2016
@@ -44,8 +44,8 @@ static const char DataAry[] = {'A', 'B',
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; }
More information about the llvm-commits
mailing list