[llvm] suppresses unused variable warning (PR #99526)

Christopher Di Bella via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 09:56:44 PDT 2024


https://github.com/cjdb created https://github.com/llvm/llvm-project/pull/99526

None

>From cb473986c7a12392dc1ba029bd04552d121fae76 Mon Sep 17 00:00:00 2001
From: Christopher Di Bella <cjdb at google.com>
Date: Thu, 18 Jul 2024 16:55:56 +0000
Subject: [PATCH] suppresses unused variable warning

---
 llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index b9cf36a07846c..3d90c0a2c0de3 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -3362,6 +3362,7 @@ void InstrRefBasedLDV::buildVLocValueMap(
       if (BlockLiveIn->Kind == DbgValue::VPHI)
         BlockLiveIn->Kind = DbgValue::Def;
       auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
+      (void)DILoc;
       assert(BlockLiveIn->Properties.DIExpr->getFragmentInfo() ==
                  Var.getFragment() &&
              "Fragment info missing during value prop");



More information about the llvm-commits mailing list