summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
index ca9e8e61552..c76601da4d0 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
@@ -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");
}
OpenPOWER on IntegriCloud