Skip to content

Commit 1a20fe1

Browse files
committed
[embedded] -no-allocations should be a flag without arguments
1 parent 27026c8 commit 1a20fe1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/swift/Option/Options.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,8 @@ def save_optimization_record_passes :
872872
"the generated optimization record "
873873
"(by default, include all passes)">, MetaVarName<"<regex>">;
874874

875-
def no_allocations : Separate<["-"], "no-allocations">,
875+
def no_allocations : Flag<["-"], "no-allocations">,
876876
Flags<[FrontendOption, HelpHidden]>,
877-
MetaVarName<"<n>">,
878877
HelpText<"Diagnose any code that needs to heap allocate (classes, closures, etc.)">;
879878

880879
// Platform options.

0 commit comments

Comments
 (0)