Skip to content

Commit

Permalink
Reapply D146987 "[Assignment Tracking] Enable by default"
Browse files Browse the repository at this point in the history
This reverts commit efc8b52
which reverts D146987.

See https://reviews.llvm.org/D146987 for issues.
  • Loading branch information
OCHyams committed Apr 19, 2023
1 parent fca3e8e commit 107b307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Driver/Options.td
Expand Up @@ -5817,7 +5817,7 @@ def fexperimental_assignment_tracking_EQ : Joined<["-"], "fexperimental-assignme
Group<f_Group>, CodeGenOpts<"EnableAssignmentTracking">,
NormalizedValuesScope<"CodeGenOptions::AssignmentTrackingOpts">,
Values<"disabled,enabled,forced">, NormalizedValues<["Disabled","Enabled","Forced"]>,
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Disabled">;
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Enabled">;

} // let Flags = [CC1Option, NoDriverOption]

Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGen/assignment-tracking/flag.cpp
Expand Up @@ -8,10 +8,10 @@
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=disabled -O1\
// RUN: | FileCheck %s --check-prefixes=DISABLE

//// Disabled by default:
//// Enabled by default:
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
// RUN: -emit-llvm %s -o - -O1 \
// RUN: | FileCheck %s --check-prefixes=DISABLE
// RUN: | FileCheck %s --check-prefixes=ENABLE

//// Disabled at O0 unless forced.
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
Expand Down

0 comments on commit 107b307

Please sign in to comment.