[IDE] NFC: remove unnecessary const_cast

This commit is contained in:
Egor Zhdan
2022-04-22 23:36:22 +01:00
committed by GitHub
parent a1a8dd7de2
commit d0f81417d5

View File

@@ -625,9 +625,7 @@ void swift::ide::printModuleInterface(
return true;
if (ImportedMod == TargetClangMod)
return false;
// FIXME: const-ness on the clang API.
return ImportedMod->isSubModuleOf(
const_cast<clang::Module*>(TargetClangMod));
return ImportedMod->isSubModuleOf(TargetClangMod);
};
if (auto ID = dyn_cast<ImportDecl>(D)) {