compiler: Fix determining types for builtin complex function.

From-SVN: r191631
This commit is contained in:
Ian Lance Taylor 2012-09-22 06:02:51 +00:00
parent 7fe6b90c9c
commit c8a36a9903
1 changed files with 1 additions and 1 deletions

View File

@ -7482,7 +7482,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())