[Sema] Remove unused field from OverloadCandidate.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 8 Jun 2017 18:19:25 +0000 (18:19 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 8 Jun 2017 18:19:25 +0000 (18:19 +0000)
commit25e64000cc4350d4bbd2dfc779baf1578b3bea19
treeb1c47d494ece2a5d6c5b49e2e9fffb14ca42b474
parente1dfc7c6f661ae396e5e1f95987e680a3e964a88
[Sema] Remove unused field from OverloadCandidate.

The only use in-tree I can find for BuiltinTypes.ResultTy is a single
store to it. We otherwise just recompute what it should be later on (and
sometimes do things like argument conversions in the process of
recomputing it).

Since it's impossible to test if the value stored there is sane, and we
don't use it anyway, we should probably just drop the field.

I'll do a follow-up patch to rename BuiltinTypes.ParamTypes ->
BuiltinParamTypes in a bit. Wanted to keep this patch relatively
minimal.

Thanks to Petr Kudryavtsev for bringing this up!

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