Use the correct from type in a SCS
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 22 Jul 2014 20:20:14 +0000 (20:20 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Tue, 22 Jul 2014 20:20:14 +0000 (20:20 +0000)
commitc3ad3bab619190c2da841f245557bf79f9c845b7
tree69442f4b1306bd1604ca61e986c419e3878f2245
parent3a8c2c1e6cb2ab2fb71c28740c9b085cc812bcd6
Use the correct from type in a SCS

Summary:
If during constructing a standard conversion sequence, we resolve an
overload, we need to adjust the from type in the SCS according to the
resolved operator.

I found this bug when debugging PR20218.  This doesn't seem to be
observable, so there is no good way of testing it.

Reviewers: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4402

llvm-svn: 213680
clang/lib/Sema/SemaOverload.cpp