1
0
forked from M-Labs/nac3

nac3core/codegen/expr: fixed typo

This commit is contained in:
pca006132 2021-08-19 11:45:33 +08:00
parent 6e424a6a3e
commit d1215bf5ac

View File

@ -372,7 +372,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> {
}
ExprKind::BinOp { op, left, right } => {
let ty1 = self.unifier.get_representative(left.custom.unwrap());
let ty2 = self.unifier.get_representative(left.custom.unwrap());
let ty2 = self.unifier.get_representative(right.custom.unwrap());
let left = self.gen_expr(left);
let right = self.gen_expr(right);