diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-19 12:05:48 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-19 12:05:48 +0000 |
commit | 509447e7cb9c24a9f2bd149fe95030050b088622 (patch) | |
tree | 2afebcc22e871a0fdffd931e24aa94231865ba37 | |
parent | 89c4fcfd056e65a47d713798bcd22d0273162c8a (diff) |
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
-rw-r--r-- | include/clang/AST/Type.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<TagDecl>(D), QualType()) { } + explicit RecordType(RecordDecl *D) + : TagType(reinterpret_cast<TagDecl*>(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<TagDecl>(D), QualType()) { } + explicit EnumType(EnumDecl *D) + : TagType(reinterpret_cast<TagDecl*>(D), QualType()) { } friend class ASTContext; // ASTContext creates these. public: |