Skip to content

Commit d0f8141

Browse files
authored
[IDE] NFC: remove unnecessary const_cast
1 parent a1a8dd7 commit d0f8141

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/IDE/ModuleInterfacePrinting.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,7 @@ void swift::ide::printModuleInterface(
625625
return true;
626626
if (ImportedMod == TargetClangMod)
627627
return false;
628-
// FIXME: const-ness on the clang API.
629-
return ImportedMod->isSubModuleOf(
630-
const_cast<clang::Module*>(TargetClangMod));
628+
return ImportedMod->isSubModuleOf(TargetClangMod);
631629
};
632630

633631
if (auto ID = dyn_cast<ImportDecl>(D)) {

0 commit comments

Comments
 (0)