HomePhabricator

CodeGen: Explicitly initialize structure padding in the -ftrivial-auto-var-init…

Authored by glider on Feb 26 2019, 2:46 AM.

Description

CodeGen: Explicitly initialize structure padding in the -ftrivial-auto-var-init mode

When generating initializers for local structures in the
-ftrivial-auto-var-init mode, explicitly wipe the padding bytes with
either 0x00 or 0xAA.

This will allow us to automatically handle the padding when splitting
the initialization stores (see https://reviews.llvm.org/D57898).

Reviewed at https://reviews.llvm.org/D58188

llvm-svn: 354861

Details

Committed
gliderFeb 26 2019, 2:46 AM
Parents
rG53350d041154: [llvm-objcopy] Add --set-start, --change-start and --adjust-start
Branches
Unknown
Tags
Unknown