From 3d21d847dba6b5bb65080c33ffc8112b48b9dc9d Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Mon, 19 Sep 2016 23:18:47 +0000 Subject: [PATCH] [RegisterBankInfo] Adapt call to std::fill due to use of SmallVector. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp index ca9e8e61552..c76601da4d0 100644 --- a/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp +++ b/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"); } -- 2.50.1