Skip to content

Commit 740d83b

Browse files
authored
Merge pull request #10224 from jrose-apple/dc-marvel
2 parents b533241 + 5de3567 commit 740d83b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ClangImporter/ImportMacro.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ static ValueDecl *importStringLiteral(ClangImporter::Implementation &Impl,
190190
const clang::Token &tok,
191191
MappedStringLiteralKind kind,
192192
const clang::MacroInfo *ClangN) {
193-
DeclContext *dc = Impl.getClangModuleForMacro(MI);
194-
if (!dc)
195-
return nullptr;
196-
197193
assert(isStringToken(tok));
198194

199195
clang::ActionResult<clang::Expr*> result =
@@ -209,7 +205,7 @@ static ValueDecl *importStringLiteral(ClangImporter::Implementation &Impl,
209205
if (!importTy)
210206
return nullptr;
211207

212-
return Impl.createConstant(name, dc, importTy, parsed->getString(),
208+
return Impl.createConstant(name, DC, importTy, parsed->getString(),
213209
ConstantConvertKind::Coerce, /*static*/ false,
214210
ClangN);
215211
}

0 commit comments

Comments
 (0)