Allow operator delete to be an invalid Decl.
authorRichard Trieu <rtrieu@google.com>
Wed, 9 Aug 2017 02:03:59 +0000 (02:03 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 9 Aug 2017 02:03:59 +0000 (02:03 +0000)
commitc06b35c97e65e673530293db1d6931a06cd98396
treeda67f128fef81eb3eeed9d96c7dd53122788444f
parent24a695118759612ff4f92cb561a09c2310046d85
Allow operator delete to be an invalid Decl.

Do not discard invalid Decl when searching for the operator delete function.
The lookup for this function always expects to find a result, so sometimes the
invalid Decl is the only choice possible.  This fixes PR34109.

llvm-svn: 310435
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/MicrosoftExtensions.cpp