[all-commits] [llvm/llvm-project] e96271: [flang] Fix non-deterministic line output function

Ivan Zhechev via All-commits all-commits at lists.llvm.org
Thu Sep 2 08:14:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e962718dd5fc5e77d189729e3e1af34440450bdc
      https://github.com/llvm/llvm-project/commit/e962718dd5fc5e77d189729e3e1af34440450bdc
  Author: Ivan Zhechev <ivan.zhechev at arm.com>
  Date:   2021-09-02 (Thu, 02 Sep 2021)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp

  Log Message:
  -----------
  [flang] Fix non-deterministic line output function

The evaluation order for the `|` operator is undefined
(in contrast to the short-circuiting `||` operator). The arguments are
stored in variables to force a specific evaluation order.

A test in D107575 relies on this change.

Reviewed By: kiranchandramohan, klausler

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




More information about the All-commits mailing list