From ae273b6ba2e838cd2fe277c94d6987620146af71 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. llvm-svn: 281948 --- llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp index ca9e8e6..c76601d 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"); } -- 2.7.4