HomePhabricator

[llvm-objcopy] [COFF] Avoid memcpy() with null parameters in more places. NFC.

Description

[llvm-objcopy] [COFF] Avoid memcpy() with null parameters in more places. NFC.

This fixes all cases of errors in asan+ubsan builds.

Also use std::copy instead of if+memcpy in the previously updated spot,
for consistency.

Details

Committed
mstorsjoDec 20 2018, 1:35 PM
Parents
rL349825: Declares __cpu_model as dso local
Branches
Unknown
Tags
Unknown