diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-05-01 17:56:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-05-01 17:56:57 +0000 |
commit | 1b9a688fbaae610398676186dcd1f3a596a46571 (patch) | |
tree | d0c1fb0c00ff96c400e68259344e3edd42328b0d /lib/Frontend/CompilerInstance.cpp | |
parent | cf18ae57176a827b668e059d559ee5f1d6f8f910 (diff) |
Remove dead code found by static analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | lib/Frontend/CompilerInstance.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Frontend/CompilerInstance.cpp b/lib/Frontend/CompilerInstance.cpp index 803e418e24..22b38c1206 100644 --- a/lib/Frontend/CompilerInstance.cpp +++ b/lib/Frontend/CompilerInstance.cpp @@ -861,11 +861,6 @@ Module *CompilerInstance::loadModule(SourceLocation ImportLoc, // Determine what file we're searching from. SourceManager &SourceMgr = getSourceManager(); SourceLocation ExpandedImportLoc = SourceMgr.getExpansionLoc(ImportLoc); - const FileEntry *CurFile - = SourceMgr.getFileEntryForID(SourceMgr.getFileID(ExpandedImportLoc)); - if (!CurFile) - CurFile = SourceMgr.getFileEntryForID(SourceMgr.getMainFileID()); - StringRef ModuleName = Path[0].first->getName(); SourceLocation ModuleNameLoc = Path[0].second; |