forked from OSchip/llvm-project
Ue TagType, added a FIXME. Per John's comment.
llvm-svn: 115723
This commit is contained in:
parent
9402633637
commit
b292e32fd2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue