message/pipeline: fix type switch case order
Since *ssa.Call implements ssa.Instruction, it should
go before interface case inside a type switch, otherwise
control will never reach it and *ssa.Call values would
enter ssa.Instruction case bodies.
Change-Id: I8d62dc0eb13cdc922df7dfd8a6083ec841542cf0
Reviewed-on: https://go-review.googlesource.com/c/153399
Run-TryBot: Iskander Sharipov <quasilyte@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/message/pipeline/extract.go b/message/pipeline/extract.go
index f5043cd..39b3dd5 100644
--- a/message/pipeline/extract.go
+++ b/message/pipeline/extract.go
@@ -424,12 +424,13 @@
// fn(p)
// }
+ case *ssa.Call:
+
case ssa.Instruction:
rands := v.Operands(nil)
if len(rands) == 1 && rands[0] != nil {
x.visitFormats(call, *rands[0])
}
- case *ssa.Call:
}
}