Skip to content

Commit 69cdb52

Browse files
committed
Fix for builds without the Swift Swift parser
1 parent c8819bd commit 69cdb52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckMacros.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ static void const *lookupMacroTypeMetadataByExternalName(
9898
MacroDefinition MacroDefinitionRequest::evaluate(
9999
Evaluator &evaluator, MacroDecl *macro
100100
) const {
101-
#if SWIFT_SWIFT_PARSER
102101
ASTContext &ctx = macro->getASTContext();
103102

103+
#if SWIFT_SWIFT_PARSER
104+
104105
/// Look for the type metadata given the external module and type names.
105106
auto macroMetatype = lookupMacroTypeMetadataByExternalName(
106107
ctx, macro->externalModuleName.str(),

0 commit comments

Comments
 (0)