From f0a40e7ef4f4209104ee1290120d5a6b3cd78178 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 20 Nov 2006 04:17:27 +0000 Subject: correctly handle stuff like: typedef int G; X = sizeof(const G); X = sizeof(restrict G); llvm-svn: 39190 --- clang/Sema/SemaType.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/Sema/SemaType.cpp') diff --git a/clang/Sema/SemaType.cpp b/clang/Sema/SemaType.cpp index 0f2821e1bcd..a2e507c7af1 100644 --- a/clang/Sema/SemaType.cpp +++ b/clang/Sema/SemaType.cpp @@ -79,10 +79,10 @@ static TypeRef ConvertDeclSpecToType(const DeclSpec &DS, ASTContext &Ctx) { case DeclSpec::TST_typedef: { Decl *D = (Decl *)DS.TypenameRep; assert(D && "Didn't get a decl for a typedef?"); - // FIXME: apply type quals! assert(DS.TypeSpecWidth == 0 && DS.TypeSpecComplex == 0 && - DS.TypeSpecSign == 0 && DS.TypeQualifiers == 0 && + DS.TypeSpecSign == 0 && "Can't handle qualifiers on typedef names yet!"); + // TypeQuals handled by caller. return Ctx.getTypeDeclType(cast(D)); } } -- cgit v1.2.3