We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1adb78 + d0e1749 commit 77dd7e2Copy full SHA for 77dd7e2
lib/Sema/TypeCheckAttr.cpp
@@ -4638,7 +4638,7 @@ void AttributeChecker::visitCustomAttr(CustomAttr *attr) {
4638
4639
// Complain if this isn't the primary result-builder attribute.
4640
auto attached = decl->getAttachedResultBuilder();
4641
- if (attached != attr) {
+ if (attached && attached != attr) {
4642
diagnose(attr->getLocation(), diag::result_builder_multiple,
4643
isa<ParamDecl>(decl));
4644
diagnose(attached->getLocation(), diag::previous_result_builder_here);
0 commit comments