aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-02-14 08:53:36 -0500
committerAaron Ballman <aaron@aaronballman.com>2022-02-14 08:54:21 -0500
commit76032b0e3f58d4abe8d00ac61ff1b2044e076ba7 (patch)
tree652e5dcdd279defa516ab3cdd0e225a1f5c8680c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent62c37fa2ac19decaf71494d8e00e311e5de52985 (diff)
downloadllvm-76032b0e3f58d4abe8d00ac61ff1b2044e076ba7.zip
llvm-76032b0e3f58d4abe8d00ac61ff1b2044e076ba7.tar.gz
llvm-76032b0e3f58d4abe8d00ac61ff1b2044e076ba7.tar.bz2
Check for the overloadable attribute in all the appropriate syntactic locations
When forming the function type from a declarator, we look for an overloadable attribute before issuing a diagnostic in C about a function signature containing only .... When the attribute is present, we allow such a declaration for compatibility with the overloading rules in C++. However, we were not looking for the attribute in all of the places it is legal to write it on a declarator and so we only accepted the signature in some forms and incorrectly rejected the signature in others. We now check for the attribute preceding the declarator instead of only being applied to the declarator directly.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions