Skip to content

Commit 737ef9b

Browse files
committed
Fix macro role metaprogramming for experimental attached macros
1 parent 98e65d0 commit 737ef9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11049,7 +11049,7 @@ bool swift::isMacroSupported(MacroRole role, ASTContext &ctx) {
1104911049
switch (role) {
1105011050
#define EXPERIMENTAL_ATTACHED_MACRO_ROLE(Name, Description, FeatureName) \
1105111051
case MacroRole::Name: \
11052-
return ctx.LangOpts.hasFeature(FeatureName::CodeItemMacros);
11052+
return ctx.LangOpts.hasFeature(Feature::FeatureName);
1105311053

1105411054
#define EXPERIMENTAL_FREESTANDING_MACRO_ROLE(Name, Description, FeatureName) \
1105511055
case MacroRole::Name: return ctx.LangOpts.hasFeature(Feature::FeatureName);

0 commit comments

Comments
 (0)