diff options
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 05b6a0f1fe..58c384d65e 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -666,19 +666,11 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group, if (!isFramework) { if (const FileEntry *FE = FM.getFile(&MappedPath[0], &MappedPath[0]+MappedPath.size())) { - std::string ErrorInfo; - const HeaderMap *HM = HS.CreateHeaderMap(FE, ErrorInfo); - if (HM) { + if (const HeaderMap *HM = HS.CreateHeaderMap(FE)) { + // It is a headermap, add it to the search path. IncludeGroup[Group].push_back(DirectoryLookup(HM, Type,isUserSupplied)); return; } - - // If this looked like a headermap but was corrupted, emit that error, - // otherwise treat it as a missing directory. - if (!ErrorInfo.empty()) { - fprintf(stderr, "%s\n", ErrorInfo.c_str()); - return; - } } } |