[SIL] Don't print duplicated import decls by kitasuke · Pull Request #17084 · swiftlang/swift

Issue If we pass a raw SIL file as input to sil-opt, we get duplicated import declarations like below. Here is commands to reproduce sil-opt $sil-opt input.sil > output.sil input.sil sil_stage ...