[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 29 08:54:54 PST 2024
================
@@ -0,0 +1,27 @@
+// RUN: %clang %s -S -emit-llvm -fextend-lifetimes -O2 -o - -fno-discard-value-names | FileCheck %s
+//
+// Check we can correctly produce fake uses for function-level variables even
+// when we have a return in a nested conditional and there is no code at the end
+// of the function.
----------------
jmorse wrote:
I see this is now O0 and disable-O0-optnone, would this not be even better spelt as just `-disable-llvm-passes`? IMHO that's a much more substantially direct way of signalling "none of LLVM will run".
https://github.com/llvm/llvm-project/pull/110102
More information about the cfe-commits
mailing list