Skip to content

Commit

Permalink
AArch64: use std::fill instead of memset
Browse files Browse the repository at this point in the history
Followup based on review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216436 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nobled committed Aug 26, 2014
1 parent 4a3195c commit 2db57b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/AArch64/AArch64CollectLOH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2db57b4

Please sign in to comment.