summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2016-09-02 22:59:57 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2016-09-02 22:59:57 +0000
commit2099b54102e7d6f6037fcc01c5c8543104ab42ac (patch)
treed0c044204914ecb288771afd43ac0a2d3b45aa52 /lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
parent88159e55495fa45ad8c7be0cedb5a2a5c9b72cd3 (diff)
downloadbcm5719-llvm-2099b54102e7d6f6037fcc01c5c8543104ab42ac.tar.gz
bcm5719-llvm-2099b54102e7d6f6037fcc01c5c8543104ab42ac.zip
[Sema] Relax overloading restrictions in C.
This patch allows us to perform incompatible pointer conversions when resolving overloads in C. So, the following code will no longer fail to compile (though it will still emit warnings, assuming the user hasn't opted out of them): ``` void foo(char *) __attribute__((overloadable)); void foo(int) __attribute__((overloadable)); void callFoo() { unsigned char bar[128]; foo(bar); // selects the char* overload. } ``` These conversions are ranked below all others, so: A. Any other viable conversion will win out B. If we had another incompatible pointer conversion in the example above (e.g. `void foo(int *)`), we would complain about an ambiguity. Differential Revision: https://reviews.llvm.org/D24113 llvm-svn: 280553
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud