[all-commits] [llvm/llvm-project] d7697c: [flang] Avoid segfault when defining op is not a f...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Jul 4 07:03:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7697c175db96601ad5726111e3ac9057af56756
      https://github.com/llvm/llvm-project/commit/d7697c175db96601ad5726111e3ac9057af56756
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-07-04 (Mon, 04 Jul 2022)

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    A flang/test/Lower/extent_triplets.f90

  Log Message:
  -----------
  [flang] Avoid segfault when defining op is not a fir::Convert

The previous code made the assumption that the defining
operation is a fir::ConvertOp without checking. This results in
segmentation fault in code like the added test.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list