[all-commits] [llvm/llvm-project] 723cd2: Fix potential crash in Flang generateLLVMIR() when...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Sun Feb 19 08:56:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 723cd2e953d245ca9d6df6c4f3852d3ebbe0b253
      https://github.com/llvm/llvm-project/commit/723cd2e953d245ca9d6df6c4f3852d3ebbe0b253
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-02-19 (Sun, 19 Feb 2023)

  Changed paths:
    M flang/lib/Frontend/FrontendActions.cpp

  Log Message:
  -----------
  Fix potential crash in Flang generateLLVMIR() when MLIR fails to translate to LLVM

This is pure code motion, to ensure that the check if we have a valid llvmModule
comes before trying to set option on this module.

Differential Revision: https://reviews.llvm.org/D144342




More information about the All-commits mailing list