Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion llvm/lib/IR/Value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading