diff options
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 74b0e5a..63897dd 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -17276,7 +17276,7 @@ Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc, if (TypeSourceInfo *TI = EnumUnderlying.dyn_cast<TypeSourceInfo *>()) ED->setIntegerTypeSourceInfo(TI); else - ED->setIntegerType(QualType(EnumUnderlying.get<const Type *>(), 0)); + ED->setIntegerType(QualType(cast<const Type *>(EnumUnderlying), 0)); QualType EnumTy = ED->getIntegerType(); ED->setPromotionType(Context.isPromotableIntegerType(EnumTy) ? Context.getPromotedIntegerType(EnumTy) @@ -17909,7 +17909,7 @@ CreateNewDecl: if (TypeSourceInfo *TI = EnumUnderlying.dyn_cast<TypeSourceInfo*>()) ED->setIntegerTypeSourceInfo(TI); else - ED->setIntegerType(QualType(EnumUnderlying.get<const Type *>(), 0)); + ED->setIntegerType(QualType(cast<const Type *>(EnumUnderlying), 0)); QualType EnumTy = ED->getIntegerType(); ED->setPromotionType(Context.isPromotableIntegerType(EnumTy) ? Context.getPromotedIntegerType(EnumTy) @@ -19925,7 +19925,7 @@ static void CheckForDuplicateEnumValues(Sema &S, ArrayRef<Decl *> Elements, continue; } - ECDVector *Vec = Entry.get<ECDVector*>(); + ECDVector *Vec = cast<ECDVector *>(Entry); // Make sure constants are not added more than once. if (*Vec->begin() == ECD) continue; |