[PATCH] D59394: [Sema] De-duplicate some availability checking logic
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 14 16:08:09 PDT 2019
erik.pilkington created this revision.
erik.pilkington added reviewers: rsmith, aaron.ballman, ldionne, dexonsmith.
Herald added subscribers: jdoerfert, jkorous.
Herald added a project: clang.
Right now, we emit unavailable errors for calls to functions during overload resolution, and for references to all other declarations in DiagnoseUseOfDecl. The early checks during overload resolution aren't as good as the DiagnoseAvailabilityOfDecl based checks, as they error on the code from PR40991. Fix this by removing the early checking.
Thanks for taking a look!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 27978 bytes
Desc: not available
More information about the cfe-commits