Skip to content

integration_tests/expr_16.py fails in LLVM #1859

Closed
@certik

Description

@certik
$ lpython expr_16.py
...
declare void @_lfortran_printf(i8*, ...)

declare void @_lcompilers_print_error(i8*, ...)

declare void @exit(i32)

define i32 @main(i32 %0, i8** %1) {
.entry:
  call void @_lpython_set_argv(i32 %0, i8** %1)
  call void @__module__global_symbols__lpython_main_program()
  ret i32 0
}

declare void @_lpython_set_argv(i32, i8**)
code generation error: asr_to_llvm: module failed verification. Error:
Both operands to a binary operator are not of the same type!
  %20 = sub i64 %19, i32 0
Both operands to a binary operator are not of the same type!
  %21 = add i64 %20, i32 1
Stored value type does not match pointer operand type!
  store i64 %21, i32* %17, align 4
 i32Both operands to a binary operator are not of the same type!
  %22 = mul i32 1, i64 %21



Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions