mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IDE] NFC: remove unnecessary const_cast
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user