SILGen shouldn't know about ModuleFile, use FileUnit instead.

Swift SVN r26577
This commit is contained in:
Luqman Aden
2015-03-26 03:33:41 +00:00
parent 551bfef935
commit f7403e38c0
7 changed files with 12 additions and 9 deletions

View File

@@ -489,7 +489,7 @@ StringRef SerializedASTFile::getFilename() const {
}
const clang::Module *SerializedASTFile::getUnderlyingClangModule() {
if (auto *ShadowedModule = getFile().getShadowedModule())
if (auto *ShadowedModule = File.getShadowedModule())
return ShadowedModule->findUnderlyingClangModule();
return nullptr;
}