[llvm] [LiveDebugVariables] Add basic verification (PR #79846)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 15:01:16 PST 2024
================
@@ -492,6 +492,13 @@ class UserValue {
/// Return DebugLoc of this UserValue.
const DebugLoc &getDebugLoc() { return dl; }
+ void verify() const {
+ for (auto I = locInts.begin(), E = locInts.end(); I != E; ++I) {
----------------
adrian-prantl wrote:
```suggestion
for (auto I : locInts) {
```
https://github.com/llvm/llvm-project/pull/79846
More information about the llvm-commits
mailing list