diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-27 20:35:44 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-27 20:35:44 +0000 |
| commit | e5bef035c679a08ba8e6a5a79c47425bdb12ac90 (patch) | |
| tree | bd277c61e2682c8f33c91fd241da69eafebdc68e /clang/lib/Sema/SemaExprCXX.cpp | |
| parent | 57e3d658842e54a927cae68359c487cde84df003 (diff) | |
| download | bcm5719-llvm-e5bef035c679a08ba8e6a5a79c47425bdb12ac90.tar.gz bcm5719-llvm-e5bef035c679a08ba8e6a5a79c47425bdb12ac90.zip | |
Document some serious badness in our evaluation of the type traits: we need to be sure we have complete types in many cases
llvm-svn: 124428
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index df4103a9a1b..ca104ef5814 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -2219,6 +2219,8 @@ ExprResult Sema::ActOnUnaryTypeTrait(UnaryTypeTrait UTT, 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; |

