Skip to content

Commit 3820e9a

Browse files
committed
Reapply (4) "[Assignment Tracking] Enable by default"
Re-land D146987. This reverts commit 8af5756 which reverts D146987.
1 parent 38292f0 commit 3820e9a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5815,7 +5815,7 @@ def experimental_assignment_tracking_EQ : Joined<["-"], "fexperimental-assignmen
58155815
Group<f_Group>, CodeGenOpts<"EnableAssignmentTracking">,
58165816
NormalizedValuesScope<"CodeGenOptions::AssignmentTrackingOpts">,
58175817
Values<"disabled,enabled,forced">, NormalizedValues<["Disabled","Enabled","Forced"]>,
5818-
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Disabled">;
5818+
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Enabled">;
58195819

58205820
} // let Flags = [CC1Option, NoDriverOption]
58215821

clang/test/CodeGen/assignment-tracking/flag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=disabled -O1\
99
// RUN: | FileCheck %s --check-prefixes=DISABLE
1010

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

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

0 commit comments

Comments
 (0)