]> granicus.if.org Git - clang/commitdiff
[clang] enable_trivial_var_init_zero should not be Joined<>
authorVitaly Buka <vitalybuka@google.com>
Tue, 8 Oct 2019 20:34:53 +0000 (20:34 +0000)
committerVitaly Buka <vitalybuka@google.com>
Tue, 8 Oct 2019 20:34:53 +0000 (20:34 +0000)
Reviewers: rnk

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68610

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374113 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td

index ec906fa02b42e32d4b9b42125ad44b2abca7b773..cbcf2ab326633e03dc7bd8900795897ea5a33207 100644 (file)
@@ -1720,7 +1720,7 @@ def fstack_protector : Flag<["-"], "fstack-protector">, Group<f_Group>,
 def ftrivial_auto_var_init : Joined<["-"], "ftrivial-auto-var-init=">, Group<f_Group>,
   Flags<[CC1Option, CoreOption]>, HelpText<"Initialize trivial automatic stack variables: uninitialized (default)"
   " | pattern">, Values<"uninitialized,pattern">;
-def enable_trivial_var_init_zero : Joined<["-"], "enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">,
+def enable_trivial_var_init_zero : Flag<["-"], "enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">,
   Flags<[CC1Option, CoreOption]>,
   HelpText<"Trivial automatic variable initialization to zero is only here for benchmarks, it'll eventually be removed, and I'm OK with that because I'm only using it to benchmark">;
 def fstandalone_debug : Flag<["-"], "fstandalone-debug">, Group<f_Group>, Flags<[CoreOption]>,