[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 19:55:30 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
----------------
MaskRay wrote:
We just need two RUN lines, one with -fextended-lifetimes and one without. -O group is completely orthogonal and does not need to be tested
https://github.com/llvm/llvm-project/pull/118026
More information about the cfe-commits
mailing list