]> granicus.if.org Git - clang/commit
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)
commit6057f922af873862ffdc9c99034d1a701c7ebb28
tree1a9e8b85cad18c6be9f7aa3c51fa84ff1a3b266d
parent83859dbfb6aab3463bd6a31c5fb749e9f6a41a56
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213680 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp