diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-03 13:45:17 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-03 13:45:17 +0100 |
| commit | 357f66fceeb6cbc3b72281300dbe7af4e2b68715 (patch) | |
| tree | ea88fad23fe9a5d5fa5b66bb31c92e208ef94cec /src | |
| parent | 050f128554d49d69d6411e4e898541ecfe5f8a33 (diff) | |
Fix typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/llvm_backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 92cc40094..55ffb09c3 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -10660,7 +10660,7 @@ lbValue lb_emit_comp(lbProcedure *p, TokenKind op_kind, lbValue left, lbValue ri } - if ((is_type_struct(a) || is_type_union(b)) && is_type_comparable(a)) { + if ((is_type_struct(a) || is_type_union(a)) && is_type_comparable(a)) { lbValue left_ptr = lb_address_from_load_or_generate_local(p, left); lbValue right_ptr = lb_address_from_load_or_generate_local(p, right); lbValue res = {}; |