diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-08-19 01:46:06 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-08-19 01:46:06 +0000 |
commit | 35d44e5673e772d1cc7eab66818de8d9796b89ca (patch) | |
tree | 4f2d26aad0e1466e13ccdb13073f7e56d97c77a8 /lib/Sema/SemaType.cpp | |
parent | d4a7e54f489dd863a1778a7d18f1b21ae983b473 (diff) |
Fix a comment and improve an assert message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index d08722b0dd..136440d438 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -897,7 +897,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S, Name = D.getIdentifier(); bool ShouldBuildInfo = DInfo != 0; - // The QualType referring to the type as written as source code. We can't use + // The QualType referring to the type as written in source code. We can't use // T because it can change due to semantic analysis. QualType SourceTy = T; @@ -1338,7 +1338,9 @@ QualType Sema::CreateLocInfoType(QualType T, DeclaratorInfo *DInfo) { void LocInfoType::getAsStringInternal(std::string &Str, const PrintingPolicy &Policy) const { - assert(false && "LocInfoType should not be used in the type system"); + assert(false && "LocInfoType leaked into the type system; an opaque TypeTy*" + " was used directly instead of getting the QualType through" + " GetTypeFromParser"); } /// CheckSpecifiedExceptionType - Check if the given type is valid in an |