Skip to content

Commit 8280c43

Browse files
committed
Fix internal compiler error on type conversion
In f90_value_function_I2(), fix order of A_NDTYPEG(ast) and DT_INT arguments to the lower_conv_ilm() call. The fromdtype and todtype arguments were reversed. This lead to a verify ICE in the backend.
1 parent 0918a2f commit 8280c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/flang1/flang1exe/lowerexp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3023,7 +3023,7 @@ f90_value_function_I2(char *name, int dtype, int args, int nargs)
30233023
int ast = ARGT_ARG(args, i);
30243024
ilm = lower_ilm(ast);
30253025
if (i == 1) {
3026-
ilm = lower_conv_ilm(ast, ilm, DT_INT, A_NDTYPEG(ast));
3026+
ilm = lower_conv_ilm(ast, ilm, A_NDTYPEG(ast), DT_INT);
30273027
}
30283028
ilm = plower("oi", "DPVAL", ilm);
30293029
intrinsic_args[i] = ilm;

0 commit comments

Comments
 (0)