[cfe-commits] r130467 - /cfe/trunk/lib/Lex/HeaderSearch.cpp
Douglas Gregor
dgregor at apple.com
Thu Apr 28 17:45:09 PDT 2011
Author: dgregor
Date: Thu Apr 28 19:45:09 2011
New Revision: 130467
URL: http://llvm.org/viewvc/llvm-project?rev=130467&view=rev
Log:
Use DirectoryLookup::getName() rather than getDir()->getName() in a context where we don't know whether we have a normal directory
Modified:
cfe/trunk/lib/Lex/HeaderSearch.cpp
Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=130467&r1=130466&r2=130467&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Thu Apr 28 19:45:09 2011
@@ -146,7 +146,7 @@
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());
}
More information about the cfe-commits
mailing list