]> granicus.if.org Git - clang/commitdiff
Remove dead code found by static analyzer.
authorTed Kremenek <kremenek@apple.com>
Tue, 1 May 2012 17:56:57 +0000 (17:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 May 2012 17:56:57 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155923 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp

index 803e418e24135782b076500bc9c4b379d7755900..22b38c120606e44ffd4cec6328fd9ced503c06e2 100644 (file)
@@ -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;