Author: Naveen Seth Hanig
Date: 2026-03-20T15:15:00Z
New Revision: f58b6754a1f59b49eb4837b9f36d6318989ab11f

URL: 
https://github.com/llvm/llvm-project/commit/f58b6754a1f59b49eb4837b9f36d6318989ab11f
DIFF: 
https://github.com/llvm/llvm-project/commit/f58b6754a1f59b49eb4837b9f36d6318989ab11f.diff

LOG: [clang][ModulesDriver] Fix build failure with Xcode 14 (#187713)

As pointed out by
https://github.com/llvm/llvm-project/pull/152770#issuecomment-4096179622,
81e8a1e causes build errors with older versions of Xcode (Xcode 14 and
older) when using std::not_fn() with llvm::make_filter_range().

This implements the same fix as in d1d9413.

Added: 
    

Modified: 
    clang/lib/Driver/ModulesDriver.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ModulesDriver.cpp 
b/clang/lib/Driver/ModulesDriver.cpp
index 8740f9615d304..bbad357be0aa1 100644
--- a/clang/lib/Driver/ModulesDriver.cpp
+++ b/clang/lib/Driver/ModulesDriver.cpp
@@ -1412,8 +1412,7 @@ pruneUnusedStdlibModuleJobs(CompilationGraph &Graph,
         llvm::map_range(llvm::depth_first(cast<CGNode>(PrunableJobNodeRoot)),
                         llvm::CastTo<JobNode>);
     auto ReachableNonImageNodes = llvm::make_filter_range(
-        ReachableJobNodes, std::not_fn(llvm::IsaPred<ImageJobNode>));
-
+        ReachableJobNodes, [](auto *N) { return !llvm::isa<ImageJobNode>(N); 
});
     PrunableJobNodes.insert_range(ReachableNonImageNodes);
   }
 


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to