[PATCH] D150505: [cmake] Disable GCC lifetime DSE

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 05:28:21 PDT 2023


jhuber6 added a comment.

This patch seems to cause errors with `clang-tidy` when run inside the build directory. The `-fno-lifetime-dse` argument is put inside `compile_commands.json` which then causes errors when `clang-tidy` is run. For example,

  > clang-tidy test.h --checks=-'*,llvmlibc*'
  4 warnings and 1 error generated.
  Error while processing /home/jhuber/Documents/llvm/llvm-project/build/test.h.
  error: unknown argument: '-fno-lifetime-dse' [clang-diagnostic-error]
  Suppressed 4 warnings (4 with check filters).
  Found compiler error(s).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150505/new/

https://reviews.llvm.org/D150505



More information about the llvm-commits mailing list