[PATCH] D16159: [Sema] Fix PR26085 -- regression caused by making overload resolution more lenient in C.
George Burgess IV via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 13 14:58:44 PST 2016
george.burgess.iv created this revision.
george.burgess.iv added reviewers: bob.wilson, rsmith.
george.burgess.iv added a subscriber: cfe-commits.
Fix PR26085 by suppressing diags from CheckSingleAssignmentConstraints during overload resolution.
It seems that passing `Diagnose`/`Complain` flags around to Sema methods is a mildly common thing, so that’s the approach I took when making this. I’m certainly open to suggestions if there’s a better way to go about this, because "check a flag every time you call `Diag`" seems a bit fragile/error-prone.
N.B. The attached test case is the most ObjC I’ve ever written. If the added test cases seem unintuitive, please let me know. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 24414 bytes
Desc: not available
More information about the cfe-commits