remove assert that hit with fast-math if user defined their own functions named rcp()

This commit is contained in:
Matt Pharr
2012-08-21 16:39:36 -07:00
parent 39329809dd
commit 21719df6fd

View File

@@ -2157,7 +2157,6 @@ BinaryExpr::Optimize() {
std::vector<Symbol *> rcpFuns;
m->symbolTable->LookupFunction("rcp", &rcpFuns);
if (rcpFuns.size() > 0) {
AssertPos(pos, rcpFuns.size() == 2);
Expr *rcpSymExpr = new FunctionSymbolExpr("rcp", rcpFuns, pos);
ExprList *args = new ExprList(arg1, arg1->pos);
Expr *rcpCall = new FunctionCallExpr(rcpSymExpr, args,