Skip to content

Commit 6eff928

Browse files
committed
Swift Optimizer: add a message to an assert
1 parent 92a17f8 commit 6eff928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/Sources/Optimizer/PassManager/Context.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extension MutatingContext {
6464
func erase(instructionIncludingDebugUses inst: Instruction) {
6565
for result in inst.results {
6666
for use in result.uses {
67-
assert(use.instruction is DebugValueInst)
67+
assert(use.instruction is DebugValueInst, "instruction to delete may only have debug_value uses")
6868
erase(instruction: use.instruction)
6969
}
7070
}

0 commit comments

Comments
 (0)