See https://discourse.llvm.org/t/rfc-enable-assignment-tracking/69399
This sets the -Xclang -fexperimental-assignment-tracking flag to the value
enabled which means it will be enabled so long as none of the following are
true: it's an LTO build, LLDB debugger tuning has been specified, or it's an O0
build (no work is done in any case if -g is not specified or -gmlt is used).
This reverts commit
0ba922f600469df273c753f873668e41025487c0 which reverts
https://reviews.llvm.org/D146987
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]
// 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 \