Flang generates many globals to handle derived types. There was a check in debug info to filter them based on the information that their names start with a period. This changed since PR#104859 where 'X' is being used instead of '.'. This PR fixes this issue by also adding 'X' in that list. As user variables gets lower cased by the NameUniquer, there is no risk that those will be filtered out. I added a test for that to be sure.
15 lines
300 B
Fortran
15 lines
300 B
Fortran
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
|
|
|
|
program test
|
|
type t1
|
|
integer :: XcX
|
|
integer :: xdtx
|
|
end type
|
|
type(t1) :: var
|
|
var%XcX = 2
|
|
var%xdtx = 3
|
|
end
|
|
|
|
! Test that there is no debug info for compiler generated globals.
|
|
! CHECK-NOT: DIGlobalVariable
|