]> granicus.if.org Git - clang/commit
Clean up the helpers used to compute the usual arithmetic conversions' result
authorChandler Carruth <chandlerc@gmail.com>
Sun, 12 Dec 2010 09:59:53 +0000 (09:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 12 Dec 2010 09:59:53 +0000 (09:59 +0000)
commit38ca8d1298ed1bf4512be920917559766a498916
treee0e0d3a533bed2f431a53975b91b9f49fc653560
parent3c69dc46d5391d5171875310be3edf8ca94db352
Clean up the helpers used to compute the usual arithmetic conversions' result
type. Localize all of the logic within a single function rather than spreading
it throughout the class.

Also fixes a buglet where we failed to check for a RHS arithmetic type wider
than the LHS and return its canonical type. I've yet to produce a test case
that breaks because of this, but it was spotted by inspection by folks on the
IRC channel and is obviously correct now.

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