[clang][NFC] Remove redundant cast
authorRaphael Isemann <teemperor@gmail.com>
Fri, 24 Jan 2020 09:42:26 +0000 (10:42 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 24 Jan 2020 10:07:33 +0000 (11:07 +0100)
This cast just casts Decl* to Decl*.

clang/lib/AST/ASTImporter.cpp

index 9dd20e2..dc8d7bf 100644 (file)
@@ -1753,7 +1753,7 @@ ASTNodeImporter::ImportDeclContext(DeclContext *FromDC, bool ForceImport) {
     // fix since operations such as code generation will expect this to be so.
     if (ImportedOrErr) {
       FieldDecl *FieldFrom = dyn_cast_or_null<FieldDecl>(From);
-      Decl *ImportedDecl = (Decl*)*ImportedOrErr;
+      Decl *ImportedDecl = *ImportedOrErr;
       FieldDecl *FieldTo = dyn_cast_or_null<FieldDecl>(ImportedDecl);
       if (FieldFrom && FieldTo) {
         const RecordType *RecordFrom = FieldFrom->getType()->getAs<RecordType>();