[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)
Stephen Tozer via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 23 14:08:47 PDT 2024
================
@@ -115,6 +138,23 @@ namespace llvm {
DebugLocKind getKind() const { return Loc.Kind; }
#endif
+#if ENABLE_DEBUGLOC_ORIGIN_TRACKING
+#if !ENABLE_DEBUGLOC_COVERAGE_TRACKING
+#error Cannot enable DebugLoc origin-tracking without coverage-tracking!
+#endif
----------------
SLTozer wrote:
I figured it'd be worth keeping something in the source just in case of some weird scenario with leaky environment variables; it's not likely to happen, but this will give a much cleaner error if it does.
https://github.com/llvm/llvm-project/pull/107369
More information about the cfe-commits
mailing list