]> granicus.if.org Git - llvm/commitdiff
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281948 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/RegisterBankInfo.cpp

index ca9e8e615528dc75f09cc85d2243a98884dd841c..c76601da4d027d1c8490389d7a215b851d524805 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");
 }