[all-commits] [llvm/llvm-project] a50cec: [flang] Fix CMPLX folding with complex arguments

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Jul 31 01:27:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a50cec71ecea5680c15752d211db16d49d5b1f12
      https://github.com/llvm/llvm-project/commit/a50cec71ecea5680c15752d211db16d49d5b1f12
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2020-07-31 (Fri, 31 Jul 2020)

  Changed paths:
    M flang/lib/Evaluate/fold-complex.cpp
    M flang/test/Evaluate/folding01.f90

  Log Message:
  -----------
  [flang] Fix CMPLX folding with complex arguments

CMPLX folding was expecting only one arguments in case X argument
is complex. This is wrong since there is also the optional KIND
argument.

Reviewed By: schweitz

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




More information about the All-commits mailing list