diff --git a/lib/ClangImporter/ClangImporter.cpp b/lib/ClangImporter/ClangImporter.cpp index 1dae9e38623d8..c3bd4428edfaf 100644 --- a/lib/ClangImporter/ClangImporter.cpp +++ b/lib/ClangImporter/ClangImporter.cpp @@ -391,11 +391,7 @@ getNormalInvocationArguments(std::vector &invocationArgStrs, // and is not included in the resource directory with the other implicit // module maps. It's at {freebsd|linux}/{arch}/glibc.modulemap. SmallString<128> GlibcModuleMapPath; - if (!importerOpts.OverrideResourceDir.empty()) { - GlibcModuleMapPath = importerOpts.OverrideResourceDir; - } else if (!searchPathOpts.RuntimeResourcePath.empty()) { - GlibcModuleMapPath = searchPathOpts.RuntimeResourcePath; - } + GlibcModuleMapPath = searchPathOpts.RuntimeResourcePath; // Running without a resource directory is not a supported configuration. assert(!GlibcModuleMapPath.empty());