mirror of git://gcc.gnu.org/git/gcc.git
compiler: Fix determining types for builtin complex function.
From-SVN: r191630
This commit is contained in:
parent
a90df91ef1
commit
a7a9045662
|
|
@ -7476,7 +7476,7 @@ Builtin_call_expression::do_determine_type(const Type_context* context)
|
||||||
if (args != NULL && args->size() == 2)
|
if (args != NULL && args->size() == 2)
|
||||||
{
|
{
|
||||||
Type* t1 = args->front()->type();
|
Type* t1 = args->front()->type();
|
||||||
Type* t2 = args->front()->type();
|
Type* t2 = args->back()->type();
|
||||||
if (!t1->is_abstract())
|
if (!t1->is_abstract())
|
||||||
arg_type = t1;
|
arg_type = t1;
|
||||||
else if (!t2->is_abstract())
|
else if (!t2->is_abstract())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue