From 326c39b569e385b35cc117a31a3b20919c799352 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Fri, 24 Jan 2020 10:42:26 +0100 Subject: [PATCH] [clang][NFC] Remove redundant cast This cast just casts Decl* to Decl*. --- clang/lib/AST/ASTImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp index 9dd20e2..dc8d7bf 100644 --- a/clang/lib/AST/ASTImporter.cpp +++ b/clang/lib/AST/ASTImporter.cpp @@ -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(From); - Decl *ImportedDecl = (Decl*)*ImportedOrErr; + Decl *ImportedDecl = *ImportedOrErr; FieldDecl *FieldTo = dyn_cast_or_null(ImportedDecl); if (FieldFrom && FieldTo) { const RecordType *RecordFrom = FieldFrom->getType()->getAs(); -- 2.7.4