Skip to content

Commit 21e34d7

Browse files
committed
const'ify an API's parameters. NFC
1 parent e4c6536 commit 21e34d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/ClangImporter/ClangImporter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ ImportDecl *createImportDecl(ASTContext &Ctx, DeclContext *DC, ClangNode ClangN,
323323
///
324324
/// This routine is used for various hacks that are only permitted within
325325
/// overlays of imported modules, e.g., Objective-C bridging conformances.
326-
bool isInOverlayModuleForImportedModule(DeclContext *overlayDC,
327-
DeclContext *importedDC);
326+
bool isInOverlayModuleForImportedModule(const DeclContext *overlayDC,
327+
const DeclContext *importedDC);
328328

329329
} // end namespace swift
330330

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3324,8 +3324,8 @@ importName(const clang::NamedDecl *D,
33243324
getDeclName();
33253325
}
33263326

3327-
bool swift::isInOverlayModuleForImportedModule(DeclContext *overlayDC,
3328-
DeclContext *importedDC) {
3327+
bool swift::isInOverlayModuleForImportedModule(const DeclContext *overlayDC,
3328+
const DeclContext *importedDC) {
33293329
overlayDC = overlayDC->getModuleScopeContext();
33303330
importedDC = importedDC->getModuleScopeContext();
33313331

0 commit comments

Comments
 (0)