]> granicus.if.org Git - clang/commit
[Modules] Fix a crash-on-invalid with overloaded functions
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 26 Apr 2017 20:13:45 +0000 (20:13 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 26 Apr 2017 20:13:45 +0000 (20:13 +0000)
commitcfe08f4f9084dde84191a0095c3970ee07654a09
tree6a30d951548157d0c4e5e448227b757ee9ab2666
parent9bc521065374e53923c6992332b77bed653ad22f
[Modules] Fix a crash-on-invalid with overloaded functions

Do not add an overload if the function doesn't have a prototype; this
can happen if, for instance, a misplaced/malformed call site is
considered like a declaration for recovery purposes.

rdar://problem/31306325

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/Modules/Inputs/malformed-overload/X.h [new file with mode: 0644]
test/Modules/Inputs/malformed-overload/module.modulemap [new file with mode: 0644]
test/Modules/malformed-overload.m [new file with mode: 0644]