Skip to content

Commit 959d6a6

Browse files
hnrklssnj-hui
andauthored
Update lib/Sema/TypeCheckMacros.cpp
Co-authored-by: John Hui <[email protected]>
1 parent 7025b03 commit 959d6a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckMacros.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,8 @@ static SourceFile *evaluateAttachedMacro(MacroDecl *macro, Decl *attachedTo,
13741374
dc = attachedTo->getDeclContext();
13751375
if (!isa<ClangModuleUnit>(dc->getModuleScopeContext()))
13761376
dc = dc->getParentSourceFile();
1377-
else // decls imported from clang do not have a SourceFile
1378-
ASSERT(isa<FileUnit>(dc) && !isa<SourceFile>(dc));
1377+
else
1378+
ASSERT(isa<FileUnit>(dc) && !isa<SourceFile>(dc) && "decls imported from Clang should not have a SourceFile");
13791379
} else {
13801380
dc = attachedTo->getInnermostDeclContext();
13811381
}

0 commit comments

Comments
 (0)