Merge "Default to pattern initialization for uninitialized variables." am: b9b979c8aa
am: 51fd7fd318
am: 5ae46811a1
Change-Id: I2b994c28f5fa6911f699ad8512193a9e3a55c6e6
This commit is contained in:
commit
93aba9621f
|
@ -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, " ")
|
||||
|
|
Loading…
Reference in New Issue