From: Argyrios Kyrtzidis Date: Sun, 19 Oct 2008 12:05:48 +0000 (+0000) Subject: Change a couple of cast<> to reinterpret_cast<>. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=509447e7cb9c24a9f2bd149fe95030050b088622;p=clang Change a couple of cast<> to reinterpret_cast<>. The casts<> require that "Decl.h" is included before "Type.h", use reinterpret_cast<> to remove that kind of dependency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57781 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 6ec96bc1a5..a863e400ae 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -1104,7 +1104,8 @@ protected: /// to detect TagType objects of structs/unions/classes. class RecordType : public TagType { protected: - explicit RecordType(RecordDecl *D) : TagType(cast(D), QualType()) { } + explicit RecordType(RecordDecl *D) + : TagType(reinterpret_cast(D), QualType()) { } friend class ASTContext; // ASTContext creates these. public: @@ -1150,7 +1151,8 @@ public: /// EnumType - This is a helper class that allows the use of isa/cast/dyncast /// to detect TagType objects of enums. class EnumType : public TagType { - explicit EnumType(EnumDecl *D) : TagType(cast(D), QualType()) { } + explicit EnumType(EnumDecl *D) + : TagType(reinterpret_cast(D), QualType()) { } friend class ASTContext; // ASTContext creates these. public: