================
@@ -1744,6 +1744,28 @@ Scope *ModFileReader::Read(SourceName name,
std::optional<bool> isIntrinsic,
return nullptr;
}
CHECK(sourceFile);
+
+ if (!isIntrinsic.has_value()) {
+ for (const auto &dir : context_.intrinsicModuleDirectories()) {
+ if (sourceFile->path().size() > dir.size() &&
----------------
tarunprabhu wrote:
It looks like this is checking that sourceFile is contained within `dir`. Can
LLVM's path utilities be used here?
https://github.com/llvm/llvm-project/pull/219181
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits