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.
1 parent ed6b713 commit 9e3e6e8Copy full SHA for 9e3e6e8
lib/Sema/TypeCheckAttr.cpp
@@ -7343,10 +7343,11 @@ void AttributeChecker::visitStaticExclusiveOnlyAttr(
7343
}
7344
7345
void AttributeChecker::visitWeakLinkedAttr(WeakLinkedAttr *attr) {
7346
- if (Ctx.LangOpts.Target.isOSBinFormatCOFF()) {
7347
- diagnoseAndRemoveAttr(attr, diag::attr_unsupported_on_target,
7348
- attr->getAttrName(), Ctx.LangOpts.Target.str());
7349
- }
+ if (!Ctx.LangOpts.Target.isOSBinFormatCOFF())
+ return;
+
+ diagnoseAndRemoveAttr(attr, diag::attr_unsupported_on_target,
7350
+ attr->getAttrName(), Ctx.LangOpts.Target.str());
7351
7352
7353
namespace {
0 commit comments