Fixes to get the C++ backend more working again.

This commit is contained in:
Matt Pharr
2012-03-30 16:55:36 -07:00
parent c1661eb06b
commit 05d1b06eeb
2 changed files with 61 additions and 57 deletions

View File

@@ -2786,7 +2786,7 @@ CreateForeachActiveStmt(Symbol *iterSym, Stmt *stmts, SourcePos pos) {
Expr *maskVecExpr = new SymbolExpr(maskSym, pos);
std::vector<Symbol *> mmFuns;
m->symbolTable->LookupFunction("__movmsk", &mmFuns);
Assert(mmFuns.size() == 2);
Assert(mmFuns.size() == (g->target.isa == Target::GENERIC ? 1 : 2));
FunctionSymbolExpr *movmskFunc = new FunctionSymbolExpr("__movmsk", mmFuns,
pos);
ExprList *movmskArgs = new ExprList(maskVecExpr, pos);