[cfe-commits] r79399 - /cfe/trunk/lib/Sema/SemaType.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Tue Aug 18 18:46:06 PDT 2009
Author: akirtzidis
Date: Tue Aug 18 20:46:06 2009
New Revision: 79399
URL: http://llvm.org/viewvc/llvm-project?rev=79399&view=rev
Log:
Fix a comment and improve an assert message.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=79399&r1=79398&r2=79399&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Tue Aug 18 20:46:06 2009
@@ -897,7 +897,7 @@
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 @@
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
More information about the cfe-commits
mailing list