COMDAT can only be applied to definitions, not declarations. This manifested in builds of llbuild with SwiftPM on Windows. The nominal type descriptor accessor declaration was marked as COMDAT.