Merge branch 'master' of git.tuxzone.org:woc2013

This commit is contained in:
Florian Sattler
2013-06-01 18:57:55 +02:00
7 changed files with 22 additions and 19 deletions

View File

@@ -46,6 +46,9 @@ void CodeGenVisitor::visit(BinOpExpression* e) {
case BinOp::EQUALS:
value_ = builder_->CreateICmpEQ(lhs, rhs, "eqtmp");
break;
case BinOp::LESS:
value_ = builder_->CreateICmpSLT(lhs, rhs, "eqtmp");
break;
default:
// TODO error
break;