[RegisterBankInfo] Adapt call to std::fill due to use of SmallVector.
authorQuentin Colombet <qcolombet@apple.com>
Mon, 19 Sep 2016 23:18:47 +0000 (23:18 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 19 Sep 2016 23:18:47 +0000 (23:18 +0000)
This was meant to be commited with my previous commit.

llvm-svn: 281948

llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp

index ca9e8e6..c76601d 100644 (file)
@@ -514,7 +514,7 @@ RegisterBankInfo::OperandsMapper::OperandsMapper(
     : MRI(MRI), MI(MI), InstrMapping(InstrMapping) {
   unsigned NumOpds = MI.getNumOperands();
   OpToNewVRegIdx.resize(NumOpds);
-  std::fill(&OpToNewVRegIdx[0], &OpToNewVRegIdx[NumOpds],
+  std::fill(OpToNewVRegIdx.begin(), OpToNewVRegIdx.end(),
             OperandsMapper::DontKnowIdx);
   assert(InstrMapping.verify(MI) && "Invalid mapping for MI");
 }