Commit 7335455e authored by Filipe Gonçalves's avatar Filipe Gonçalves

Fixing the subtle "bug" apparently makes pyston fail some tests, so I'm...

Fixing the subtle "bug" apparently makes pyston fail some tests, so I'm backing out on this. It doesn't make much sense that the reverse of NotEq is NotEq, and the reverse of Eq is Eq... this needs to be rechecked by someone that knows the code better than me.
parent 0faad36b
......@@ -157,10 +157,11 @@ std::string getReverseOpName(int op_type) {
return getOpName(AST_TYPE::LtE);
if (op_type == AST_TYPE::GtE)
return getOpName(AST_TYPE::Lt);
// TODO Check that this is really correct.
if (op_type == AST_TYPE::NotEq)
return getOpName(AST_TYPE::Eq);
if (op_type == AST_TYPE::Eq)
return getOpName(AST_TYPE::NotEq);
if (op_type == AST_TYPE::Eq)
return getOpName(AST_TYPE::Eq);
std::string normal_name = getOpName(op_type);
return "__r" + normal_name.substr(2);
......
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