[all-commits] [llvm/llvm-project] 1aff61: [flang][runtime] Initialize LHS temporary in Assig...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Wed May 3 09:19:49 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1aff61ecbfa359929710ade5bd8320f71c40539c
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M flang/runtime/assign.cpp

  Log Message:
  [flang][runtime] Initialize LHS temporary in AssignTemporary.

If LHS is of derived type that needs initialization, then it must be
initialized before doing the assignment. Otherwise, the assignment
might behave incorrectly based on uninitialized components that are
descriptors themselves.

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

More information about the All-commits mailing list