Commit db5bd976 authored by Travis Hance's avatar Travis Hance

fixed a bunch of bugs

parent e08e79ec
......@@ -203,8 +203,8 @@ RewriterVarUsage2 RewriterVarUsage2::cmp(AST_TYPE::AST_TYPE cmp_type, RewriterVa
Rewriter2* rewriter = var->rewriter;
assembler::Register newvar_reg = rewriter->allocReg(dest);
rewriter->assembler->cmp(this_reg, other_reg);
RewriterVarUsage2 newvar = rewriter->createNewVar(newvar_reg);
rewriter->assembler->cmp(this_reg, newvar_reg);
switch (cmp_type) {
case AST_TYPE::Eq:
rewriter->assembler->sete(newvar_reg);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment