[all-commits] [llvm/llvm-project] 76347e: [flang][debug] Improve handling of dummy character...

Abid Qadeer via All-commits all-commits at lists.llvm.org
Wed Sep 18 05:52:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76347ee9584bfcdaceb4ee48d39441c29aeb2124
      https://github.com/llvm/llvm-project/commit/76347ee9584bfcdaceb4ee48d39441c29aeb2124
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
    A flang/test/Transforms/debug-107988.fir

  Log Message:
  -----------
  [flang][debug] Improve handling of dummy character arguments. (#108283)

As described in #107998, we were not handling the case well when length
of the character is not part of the type. This PR handles one of the
case when the length can be calculated by looking at the result of
corresponding `fir.unboxchar`.

The DIStringTypeAttr have a `stringLength` field that can be a variable.
We create an artificial variable that will hold the length and used as
value of `stringLength` field. The variable is then attached with
a `DbgValueOp`.

Fixes #107998.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list