Commits

Jordan Rose committed 5aa60308a60
[ClangImporter] Don't mistake a module being built for our dummy buffer. The ClangDiagnosticConsumer forwards diagnostics from Clang's diagnostic machinery to Swift's. It deliberately filters out things that happen in our top-level dummy buffer (usually trivial things like "module imported here"). Unfortunately, it was doing so by checking against the current SourceManager's "main file". When building Clang modules (compiling PCM files), we're dealing with a new SourceManager, whose main file is the module map file. Instead, just check against the (very unlikely) name of our dummy input file, like we do for imported headers. rdar://problem/18867749 Swift SVN r23121