[llvm] 574dbe3 - suppresses unused variable warning (#99526)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 10:03:59 PDT 2024
Author: Christopher Di Bella
Date: 2024-07-18T10:03:55-07:00
New Revision: 574dbe3e9cdaf94b390015a53b76f87bdaf68aae
URL: https://github.com/llvm/llvm-project/commit/574dbe3e9cdaf94b390015a53b76f87bdaf68aae
DIFF: https://github.com/llvm/llvm-project/commit/574dbe3e9cdaf94b390015a53b76f87bdaf68aae.diff
LOG: suppresses unused variable warning (#99526)
Added:
Modified:
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index b9cf36a07846c..0a6ce6a135817 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -3361,7 +3361,7 @@ void InstrRefBasedLDV::buildVLocValueMap(
continue;
if (BlockLiveIn->Kind == DbgValue::VPHI)
BlockLiveIn->Kind = DbgValue::Def;
- auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
+ [[maybe_unused]] auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
assert(BlockLiveIn->Properties.DIExpr->getFragmentInfo() ==
Var.getFragment() &&
"Fragment info missing during value prop");
More information about the llvm-commits
mailing list