mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Make explicitly we're casting away a qualifier.
This fixes a clang warning introduced with this code. NFCI.
This commit is contained in:
@@ -391,8 +391,10 @@ static bool initDocEntityInfo(const Decl *D, const Decl *SynthesizedTarget,
|
||||
if (auto *VD = dyn_cast<ValueDecl>(D)) {
|
||||
llvm::raw_svector_ostream OS(Info.FullyAnnotatedDecl);
|
||||
if (SynthesizedTarget)
|
||||
SwiftLangSupport::printFullyAnnotatedSynthesizedDeclaration(VD,
|
||||
(NominalTypeDecl*)SynthesizedTarget, OS);
|
||||
SwiftLangSupport::printFullyAnnotatedSynthesizedDeclaration(
|
||||
VD, const_cast<NominalTypeDecl *>(
|
||||
static_cast<const NominalTypeDecl *>(SynthesizedTarget)),
|
||||
OS);
|
||||
else
|
||||
SwiftLangSupport::printFullyAnnotatedDeclaration(VD, Type(), OS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user