[all-commits] [llvm/llvm-project] 88ac91: [lldb] Try harder to optimize away a test variable

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Feb 2 02:25:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88ac9138f4eb7b8c06154dd6e3f801d9882b66d7
      https://github.com/llvm/llvm-project/commit/88ac9138f4eb7b8c06154dd6e3f801d9882b66d7
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2023-02-02 (Thu, 02 Feb 2023)

  Changed paths:
    M lldb/test/API/tools/lldb-vscode/optimized/TestVSCode_optimized.py
    M lldb/test/API/tools/lldb-vscode/optimized/main.cpp

  Log Message:
  -----------
  [lldb] Try harder to optimize away a test variable

The test was checking that we can print an error message when a variable
is optimized away, but the optimizer got smarter (D140404) in tracking
the variable's value (so that we were not able to recover its value).

Using a value in an argument registers (argc) makes it more likely to be
overwritten by subsequent function calls (and permanently lost).




More information about the All-commits mailing list