aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-05 11:36:12 +0100
committergingerBill <bill@gingerbill.org>2022-08-05 11:36:12 +0100
commit6caab6225da912be51cbce5e6498490e6dcba06b (patch)
treeccae4d69d19e3db19fba7d981340b90ace53a597 /src
parente0ecdd4b24896d907b337d60ae1f929357dff956 (diff)
Fix #1930
Diffstat (limited to 'src')
-rw-r--r--src/llvm_backend_expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index b28470770..07c3224de 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -2270,6 +2270,9 @@ lbValue lb_emit_comp(lbProcedure *p, TokenKind op_kind, lbValue left, lbValue ri
}
}
+ a = core_type(left.type);
+ b = core_type(right.type);
+
if (is_type_matrix(a) && (op_kind == Token_CmpEq || op_kind == Token_NotEq)) {
Type *tl = base_type(a);
lbValue lhs = lb_address_from_load_or_generate_local(p, left);