[clang] [Clang][Driver] Create crash reproducers for IR inputs (PR #165572)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 09:52:03 PST 2025


================
@@ -2086,46 +2093,77 @@ void Driver::generateCompilationDiagnostics(
     return;
   }
 
-  // Construct the list of abstract actions to perform for this compilation. On
-  // Darwin OSes this uses the driver-driver and builds universal actions.
-  const ToolChain &TC = C.getDefaultToolChain();
-  if (TC.getTriple().isOSBinFormatMachO())
-    BuildUniversalActions(C, TC, Inputs);
-  else
-    BuildActions(C, C.getArgs(), Inputs, C.getActions());
+  // If we only have IR inputs there's no need for preprocessing.
+  if (!Inputs.empty()) {
+    // Construct the list of abstract actions to perform for this compilation.
+    // On
+    // Darwin OSes this uses the driver-driver and builds universal actions.
----------------
AaronBallman wrote:

```suggestion
    // On Darwin OSes this uses the driver-driver and builds universal actions.
```

https://github.com/llvm/llvm-project/pull/165572


More information about the cfe-commits mailing list