[cxx-interop] Fix compiler crash when importing non-public members with -g
Importing private members while the compiler is passed the -g flag causes an assertion to be tripped. This patch fixes it.
This PR is stacked on top of #80515, which introduces a new test case (without changing the compiler itself). This PR includes adds -g to that test case.
rdar://148481025
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please test
@swift-ci please smoke test
@swift-ci please smoke test
@swift-ci please test