[all-commits] [llvm/llvm-project] 726786: [flang]Avoid asking for operands when there are none

Mats Petersson via All-commits all-commits at lists.llvm.org
Wed Aug 17 04:33:03 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 726786083f1bdf8c073ea6c75b321d26719981ab
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
    M flang/test/Transforms/simplifyintrinsics.fir

  Log Message:
  [flang]Avoid asking for operands when there are none

Fix one encountered (issue #57072) and two potential scenarios where the
code would ask for an operand that isn't there.

Add test for the encountered case.

Reviewed By: vzakhari

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

More information about the All-commits mailing list