summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-08-19 01:46:06 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-08-19 01:46:06 +0000
commitcc066212803d989f91e2483160d6cd3e15b88f1f (patch)
tree541bc3dbdd75813a68306d6b0c12328c937574f6
parent11732add1e904c55fd1f1e6460593711d8575ae3 (diff)
downloadbcm5719-llvm-cc066212803d989f91e2483160d6cd3e15b88f1f.tar.gz
bcm5719-llvm-cc066212803d989f91e2483160d6cd3e15b88f1f.zip
Fix a comment and improve an assert message.
llvm-svn: 79399
-rw-r--r--clang/lib/Sema/SemaType.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index d08722b0dd6..136440d438c 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud