diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-04-19 20:45:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-19 20:45:04 +0200 |
commit | 0c4309bcc4154562ae91c3705a9e6c398833119b (patch) | |
tree | ecfc3c2e59b18bbbc2d1f6db23eec00fdf6cca2d /llvm/lib/IR/Value.cpp | |
parent | 0ed1c9862df408d3df171762bd8fa0dafbe1b7e2 (diff) | |
download | llvm-0c4309bcc4154562ae91c3705a9e6c398833119b.zip llvm-0c4309bcc4154562ae91c3705a9e6c398833119b.tar.gz llvm-0c4309bcc4154562ae91c3705a9e6c398833119b.tar.bz2 |
IR: Avoid repeating assert condition in Value destructor (#136340)
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 6c52ced5..0eaf75b 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -98,9 +98,10 @@ Value::~Value() { dbgs() << "While deleting: " << *VTy << " %" << getName() << "\n"; for (auto *U : users()) dbgs() << "Use still stuck around after Def is destroyed:" << *U << "\n"; + + llvm_unreachable("Uses remain when a value is destroyed!"); } #endif - assert(materialized_use_empty() && "Uses remain when a value is destroyed!"); // If this value is named, destroy the name. This should not be in a symtab // at this point. |