[cfe-commits] r124428 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Douglas Gregor
dgregor at apple.com
Thu Jan 27 12:35:44 PST 2011
Author: dgregor
Date: Thu Jan 27 14:35:44 2011
New Revision: 124428
URL: http://llvm.org/viewvc/llvm-project?rev=124428&view=rev
Log:
Document some serious badness in our evaluation of the type traits: we need to be sure we have complete types in many cases
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=124428&r1=124427&r2=124428&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Thu Jan 27 14:35:44 2011
@@ -2219,6 +2219,8 @@
static bool EvaluateUnaryTypeTrait(Sema &Self, UnaryTypeTrait UTT, QualType T,
SourceLocation KeyLoc) {
+ // FIXME: For many of these traits, we need a complete type before we can
+ // check these properties.
assert(!T->isDependentType() &&
"Cannot evaluate traits for dependent types.");
ASTContext &C = Self.Context;
More information about the cfe-commits
mailing list