]> granicus.if.org Git - clang/commitdiff
Use DirectoryLookup::getName() rather than getDir()->getName() in a context where...
authorDouglas Gregor <dgregor@apple.com>
Fri, 29 Apr 2011 00:45:09 +0000 (00:45 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 29 Apr 2011 00:45:09 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130467 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/HeaderSearch.cpp

index 1fe0240f4364e6ea372c37e000ad3ebb53a82921..372078c60d20a514f974aff1192f81ad8767f374 100644 (file)
@@ -146,7 +146,7 @@ const FileEntry *DirectoryLookup::LookupFile(
       Filename, HS.getFileMgr());
   if (Result) {
     if (SearchPath != NULL) {
-      llvm::StringRef SearchPathRef(getDir()->getName());
+      llvm::StringRef SearchPathRef(getName());
       SearchPath->clear();
       SearchPath->append(SearchPathRef.begin(), SearchPathRef.end());
     }