compiler: Fix determining types for builtin complex function.

From-SVN: r191630
This commit is contained in:
Ian Lance Taylor 2012-09-22 06:02:35 +00:00
parent a90df91ef1
commit a7a9045662
1 changed files with 1 additions and 1 deletions

View File

@ -7476,7 +7476,7 @@ Builtin_call_expression::do_determine_type(const Type_context* context)
if (args != NULL && args->size() == 2)
{
Type* t1 = args->front()->type();
Type* t2 = args->front()->type();
Type* t2 = args->back()->type();
if (!t1->is_abstract())
arg_type = t1;
else if (!t2->is_abstract())