[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)

Jeremy Morse via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 29 07:38:07 PST 2024


================
@@ -0,0 +1,30 @@
+/// Check that we generate fake uses only when -fextend-lifetimes is set and we
+/// are not setting optnone, or when we have optimizations set to -Og and we have
+/// not passed -fno-extend-lifetimes.
+// RUN: %clang_cc1 -emit-llvm -disable-llvm-passes -O0 -fextend-lifetimes %s -o - | FileCheck %s
----------------
jmorse wrote:

Intention of this RUN line is that no fake uses are generated, but there are no test-lines for ensuring that -> add an implicit-fake-not? And the other check-only FileCheck commands.

https://github.com/llvm/llvm-project/pull/118026


More information about the cfe-commits mailing list