Skip to content

Commit bf39f57

Browse files
committed
[flang] Hanlde COMPLEX 2/3/10 in runtime TypeCode(cat, kind)
Type codes for COMPLEX kinds 2, 3, and 10 were added in https://reviews.llvm.org/D117336 but handling for these kinds in TypeCode(cat, kind) has not been added yet. Differential Revision: https://reviews.llvm.org/D121587
1 parent 66f887e commit bf39f57

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flang/runtime/type-code.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,21 @@ TypeCode::TypeCode(TypeCategory f, int kind) {
5555
break;
5656
case TypeCategory::Complex:
5757
switch (kind) {
58+
case 2:
59+
raw_ = CFI_type_half_float_Complex;
60+
break;
61+
case 3:
62+
raw_ = CFI_type_bfloat_Complex;
63+
break;
5864
case 4:
5965
raw_ = CFI_type_float_Complex;
6066
break;
6167
case 8:
6268
raw_ = CFI_type_double_Complex;
6369
break;
6470
case 10:
71+
raw_ = CFI_type_extended_double_Complex;
72+
break;
6573
case 16:
6674
raw_ = CFI_type_long_double_Complex;
6775
break;

0 commit comments

Comments
 (0)