Skip to content

Commit b6552ed

Browse files
committed
Fix merge again.
1 parent 0fc4648 commit b6552ed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void UnqualifiedLookupFactory::performUnqualifiedLookup() {
283283
!options.contains(UnqualifiedLookupFlags::MacroLookup))
284284
lookInASTScopes();
285285
} else {
286-
assert((DC->isModuleScopeContext() || !DC->getParentSourceFile()) &&
286+
assert((DC->isModuleScopeContext() || !sf) &&
287287
"Unqualified lookup without a source location must start from "
288288
"a module-scope context");
289289

lib/ASTGen/Sources/ASTGen/Macros.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ func evaluateMacro(
222222
print("not a macro expansion decl; found \(parentSyntax.kind)")
223223
return -1
224224
}
225-
evaluatedSyntax = Syntax(try codeItemMacro.expansion(of: parentExpansion, in: &context))
225+
evaluatedSyntax = try Syntax(CodeBlockItemListSyntax(
226+
codeItemMacro.expansion(of: parentExpansion, in: &context)))
226227
macroName = parentExpansion.macro.withoutTrivia().description
227228

228229
default:

0 commit comments

Comments
 (0)