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 | 8568fb91ea0662986e09db3d2febdc37360b6f5d (patch) | |
| tree | 236a812bbd0e5e94bb22788ecdf8446844edbb22 /clang/lib/Frontend | |
| parent | db74d0b28b6fa52f14baefd80487211d011f47d4 (diff) | |
| download | bcm5719-llvm-8568fb91ea0662986e09db3d2febdc37360b6f5d.tar.gz bcm5719-llvm-8568fb91ea0662986e09db3d2febdc37360b6f5d.zip | |
Remove dead code found by static analyzer.
llvm-svn: 155923
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 803e418e241..22b38c12060 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/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; |

