[flang-commits] [flang] [flang][driver] Improve diagnostic for assembly inputs (PR #174316)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Jan 12 07:30:15 PST 2026
================
@@ -147,6 +147,31 @@ int main(int argc, const char **argv) {
llvm::SmallVector<std::pair<int, const clang::driver::Command *>, 4>
failingCommands;
+ // Reject assembly files as flang does not support assembling
+ if (c) {
----------------
tarunprabhu wrote:
Is this check necessary? Does `BuildCompilation` ever return nullptr? I think later in the code, `c` is used without a check which suggests that it doesn't, but that could be a bug. Do you mind checking?
https://github.com/llvm/llvm-project/pull/174316
More information about the flang-commits
mailing list