We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a17f8 commit 6eff928Copy full SHA for 6eff928
SwiftCompilerSources/Sources/Optimizer/PassManager/Context.swift
@@ -64,7 +64,7 @@ extension MutatingContext {
64
func erase(instructionIncludingDebugUses inst: Instruction) {
65
for result in inst.results {
66
for use in result.uses {
67
- assert(use.instruction is DebugValueInst)
+ assert(use.instruction is DebugValueInst, "instruction to delete may only have debug_value uses")
68
erase(instruction: use.instruction)
69
}
70
0 commit comments