Ue TagType, added a FIXME. Per John's comment.

llvm-svn: 115723
This commit is contained in:
Fariborz Jahanian 2010-10-06 00:23:25 +00:00
parent 9402633637
commit b292e32fd2
1 changed files with 3 additions and 4 deletions

View File

@ -2213,10 +2213,9 @@ QualType Sema::BuildTypeofExprType(Expr *E) {
}
if (!E->isTypeDependent()) {
QualType T = E->getType();
if (const RecordType *EltTy = T->getAs<RecordType>())
DiagnoseUseOfDecl(EltTy->getDecl(), E->getExprLoc());
else if (const EnumType *Enum = T->getAs<EnumType>())
DiagnoseUseOfDecl(Enum->getDecl(), E->getExprLoc());
// FIXME. Issue warning for types built from deprecated types as well.
if (const TagType *TT = T->getAs<TagType>())
DiagnoseUseOfDecl(TT->getDecl(), E->getExprLoc());
}
return Context.getTypeOfExprType(E);
}