summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/plugins
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-29 18:24:40 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-29 18:24:40 +0000
commit980fb16f9a05f946007cd65929bd611d8812d8cd (patch)
tree5e188d34ebe1bfec30447654ed35ccd3cf788720 /llvm/tools/llvmc/plugins
parent1905e2be862cd261c92257112e4fd692f51fe4df (diff)
downloadbcm5719-llvm-980fb16f9a05f946007cd65929bd611d8812d8cd.tar.gz
bcm5719-llvm-980fb16f9a05f946007cd65929bd611d8812d8cd.zip
When determining a standard conversion sequence involves resolving the
address of an overloaded function (or function template), perform that resolution prior to determining the implicit conversion sequence. This resolution is not part of the implicit conversion sequence itself. Previously, we would always consider this resolution to be a function pointer decay, which was a lie: there might be an explicit & in the expression, in which case decay should not occur. This caused the CodeGen assertion in PR6973 (where we created a pointer to a pointer to a function when we should have had a pointer to a function), but it's likely that there are corner cases of overload resolution where this would have failed. Cleaned up the code involved in determining the type that will produced afer resolving the overloaded function reference, and added an assertion to make sure the result is correct. Fixes PR6973. llvm-svn: 102650
Diffstat (limited to 'llvm/tools/llvmc/plugins')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud