Merge "Default to pattern initialization for uninitialized variables." am: b9b979c8aa am: 51fd7fd318 am: 5ae46811a1

Change-Id: I2b994c28f5fa6911f699ad8512193a9e3a55c6e6
This commit is contained in:
Automerger Merge Worker 2020-01-21 19:06:00 +00:00
commit 93aba9621f
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ func init() {
flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang")
} else if ctx.Config().IsEnvTrue("AUTO_PATTERN_INITIALIZE") {
flags = append(flags, "-ftrivial-auto-var-init=pattern")
} else {
// Default to pattern initialization.
flags = append(flags, "-ftrivial-auto-var-init=pattern")
}
return strings.Join(flags, " ")