diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-26 08:41:28 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-10-26 08:41:28 +0000 |
commit | e3962aebca1e2b7e402c97e54a253738fe6a95d3 (patch) | |
tree | 3e0979bc9ca49954e72a76096f1767444361c452 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | d2825825f8cd8b692d42075dfbc9f8195765e278 (diff) | |
download | llvm-e3962aebca1e2b7e402c97e54a253738fe6a95d3.zip llvm-e3962aebca1e2b7e402c97e54a253738fe6a95d3.tar.gz llvm-e3962aebca1e2b7e402c97e54a253738fe6a95d3.tar.bz2 |
Fix overloaded static functions in SemaCodeComplete
https://bugs.llvm.org/show_bug.cgi?id=33904
Happens when static function is accessed via the class variable. That leads to incorrect overloads number because the variable is considered as the first argument.
struct Bar {
static void foo(); static void foo(int);
};
int main() {
Bar b;
b.foo(/*complete here*/); // did not work before
Bar::foo(/*complete here*/); // worked fine
}
Patch by Ivan Donchevskii!
Differential Revision: https://reviews.llvm.org/D36390
llvm-svn: 316646
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions