Merge "Default to pattern initialization for uninitialized variables (try 2)." am: d35fcae5dc am: b286d3e1d9

Change-Id: I5e5d36c90b468136f0b88a91aad4c00c7ecbe966
This commit is contained in:
Automerger Merge Worker 2020-01-31 22:14:11 +00:00
commit 447c894c0d

View file

@ -168,6 +168,9 @@ func init() {
flags = append(flags, "-ftrivial-auto-var-init=pattern")
} else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
flags = append(flags, "-ftrivial-auto-var-init=uninitialized")
} else {
// Default to pattern initialization.
flags = append(flags, "-ftrivial-auto-var-init=pattern")
}
return strings.Join(flags, " ")