File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ void UnqualifiedLookupFactory::performUnqualifiedLookup() {
283
283
!options.contains (UnqualifiedLookupFlags::MacroLookup))
284
284
lookInASTScopes ();
285
285
} else {
286
- assert ((DC->isModuleScopeContext () || !DC-> getParentSourceFile () ) &&
286
+ assert ((DC->isModuleScopeContext () || !sf ) &&
287
287
" Unqualified lookup without a source location must start from "
288
288
" a module-scope context" );
289
289
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ func evaluateMacro(
222
222
print ( " not a macro expansion decl; found \( parentSyntax. kind) " )
223
223
return - 1
224
224
}
225
- evaluatedSyntax = Syntax ( try codeItemMacro. expansion ( of: parentExpansion, in: & context) )
225
+ evaluatedSyntax = try Syntax ( CodeBlockItemListSyntax (
226
+ codeItemMacro. expansion ( of: parentExpansion, in: & context) ) )
226
227
macroName = parentExpansion. macro. withoutTrivia ( ) . description
227
228
228
229
default :
You can’t perform that action at this time.
0 commit comments