================
@@ -31,6 +31,19 @@
 namespace clang::lifetimes {
 namespace internal {
 
+static void DebugOnlyFunction(AnalysisDeclContext &AC, const CFG &Cfg,
----------------
mikaelholmen wrote:

Hi @usx95 

If building without asserts this function is unused and we get
```
../../clang/lib/Analysis/LifetimeSafety/LifetimeSafety.cpp:34:13: error: unused 
function 'DebugOnlyFunction' [-Werror,-Wunused-function]
   34 | static void DebugOnlyFunction(AnalysisDeclContext &AC, const CFG &Cfg,
      |             ^~~~~~~~~~~~~~~~~
1 error generated.
``

https://github.com/llvm/llvm-project/pull/168344
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to