PLC-lang / rusty

Structured Text Parser and LLVM Frontend
GNU Lesser General Public License v3.0
204 stars 52 forks source link

branch conditions must be of type i1 #447

Closed riederm closed 2 years ago

riederm commented 2 years ago

444 turned bool into i8. When compiling native code, it complains that branch conditions must be of type i1.

e.g. when trying to compile oscat using clang-12:

rusty --ir oscat-single-file.st mv oscat-signle-file.ir oscat-single-file.ll clangd ...

create-issue-branch[bot] commented 2 years ago

Branch issue-447-branch_conditions_must_be_of_type_i1 created!