mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
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:
parent
4a3195c40d
commit
2db57b44de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user