Commit 5bc0f4a
committed
[flang][OpenMP] Fix regression in OpenMP master region with private target integer
When handling TARGET variables in dummy arguments, the code was calling
getFuncArgName() unconditionally. This could cause an assertion failure
when getUniqName() returns an unengaged optional for TARGET variables.
Move getFuncArgName() call to only execute when the variable is not a
TARGET or POINTER, avoiding the assertion error.
Fixes issue #1720751 parent f3c1645 commit 5bc0f4a
File tree
2 files changed
+38
-8
lines changed- flang
- lib/Optimizer/Transforms
- test/Transforms
2 files changed
+38
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | 705 | | |
707 | 706 | | |
708 | 707 | | |
| 708 | + | |
| 709 | + | |
709 | 710 | | |
710 | 711 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | 712 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments