aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-04-29 00:45:09 +0000
committerDouglas Gregor <dgregor@apple.com>2011-04-29 00:45:09 +0000
commit520a99f0d9b506e4dd2161495fa12ef02608fef7 (patch)
tree8a3e23b77ef03609aab0bc525a07c1d8936e1a34 /lib/Lex/HeaderSearch.cpp
parente9b5f3d4acfc2ad6e8b65a4072464e997dea9ed3 (diff)
Use DirectoryLookup::getName() rather than getDir()->getName() in a context where we don't know whether we have a normal directory
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/HeaderSearch.cpp')
-rw-r--r--lib/Lex/HeaderSearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp
index 1fe0240f43..372078c60d 100644
--- a/lib/Lex/HeaderSearch.cpp
+++ b/lib/Lex/HeaderSearch.cpp
@@ -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());
}