[llvm] r281948 - [RegisterBankInfo] Adapt call to std::fill due to use of SmallVector.
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 16:18:47 PDT 2016
Author: qcolombet
Date: Mon Sep 19 18:18:47 2016
New Revision: 281948
URL: http://llvm.org/viewvc/llvm-project?rev=281948&view=rev
Log:
[RegisterBankInfo] Adapt call to std::fill due to use of SmallVector.
This was meant to be commited with my previous commit.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp?rev=281948&r1=281947&r2=281948&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp Mon Sep 19 18:18:47 2016
@@ -514,7 +514,7 @@ RegisterBankInfo::OperandsMapper::Operan
: 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");
}
More information about the llvm-commits
mailing list