Skip to content

Commit 10645b0

Browse files
author
Eugene Burmako
committed
pschuh's proposed fix to C++ importer test breakages
1 parent 9e24be3 commit 10645b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8060,7 +8060,7 @@ ClangImporter::Implementation::importDeclContextOf(
80608060
switch (context.getKind()) {
80618061
case EffectiveClangContext::DeclContext: {
80628062
auto dc = context.getAsDeclContext();
8063-
if (dc->isFileContext()) {
8063+
if (dc->isTranslationUnit()) {
80648064
if (auto *module = getClangModuleForDecl(decl))
80658065
return module;
80668066
else

0 commit comments

Comments
 (0)