aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
diff options
context:
space:
mode:
authorChristopher Di Bella <cjdb@google.com>2024-07-18 10:03:55 -0700
committerGitHub <noreply@github.com>2024-07-18 10:03:55 -0700
commit574dbe3e9cdaf94b390015a53b76f87bdaf68aae (patch)
tree69bcfb13997b434af816cafab986aab9a791db1a /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
parent3d69bbc35158822c9e1371b5c37a24213a8a81fc (diff)
downloadllvm-574dbe3e9cdaf94b390015a53b76f87bdaf68aae.zip
llvm-574dbe3e9cdaf94b390015a53b76f87bdaf68aae.tar.gz
llvm-574dbe3e9cdaf94b390015a53b76f87bdaf68aae.tar.bz2
suppresses unused variable warning (#99526)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index b9cf36a..0a6ce6a 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");