AArch64: use std::fill instead of memset

Followup based on review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dylan Noblesmith 2014-08-26 03:33:26 +00:00
parent 4a3195c40d
commit 2db57b44de

View File

@ -293,7 +293,7 @@ static void initReachingDef(MachineFunction &MF,
for (MachineBasicBlock &MBB : MF) {
auto &BBGen = Gen[&MBB];
BBGen = make_unique<const MachineInstr *[]>(NbReg);
memset(BBGen.get(), 0, sizeof(const MachineInstr *) * NbReg);
std::fill(BBGen.get(), BBGen.get() + NbReg, nullptr);
BitVector &BBKillSet = Kill[&MBB];
BBKillSet.resize(NbReg);