[PATCH] D150420: [LiveDebugValues] Looks like a bug?
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 11 19:29:00 PDT 2023
vitalybuka created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
jmorse
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150420
Files:
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
Index: llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
===================================================================
--- llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
+++ llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
@@ -1094,7 +1094,7 @@
MLocTracker *MTracker = nullptr;
/// Number of the current block LiveDebugValues is stepping through.
- unsigned CurBB;
+ unsigned CurBB = -1;
/// Number of the current instruction LiveDebugValues is evaluating.
unsigned CurInst;
Index: llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
===================================================================
--- llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -1070,6 +1070,7 @@
break;
}
}
+ assert(CurBB != -1u);
LocIdxToIDNum[NewIdx] = ValNum;
LocIdxToLocID[NewIdx] = ID;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150420.521537.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230512/e28ada8a/attachment.bin>
More information about the llvm-commits
mailing list