summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-05-01 07:23:14 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-05-01 07:23:14 +0000
commitf2f5652d3df7256998e76dac3709d6872f46a0bb (patch)
tree43375b4b7ac9d99cb20354b803db16c2370fcf8d /clang/lib/Sema
parent61bc17378432d86b27bc7b565195f111aedab965 (diff)
downloadbcm5719-llvm-f2f5652d3df7256998e76dac3709d6872f46a0bb.tar.gz
bcm5719-llvm-f2f5652d3df7256998e76dac3709d6872f46a0bb.zip
Remove the type traits UTT_IsLvalueExpr and UTT_IsRvalueExpr.
As might be surmised from their names, these aren't type traits, they're expression traits. Amazingly enough, they're expression traits that we have, and fully implement. These "type" traits are even parsed from the same tokens as the expression traits. Luckily, the parser only tried the expression trait parsing for these tokens, so this was all just a pile of dead code. llvm-svn: 130643
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 4ade6898663..0b2e448e562 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -2371,11 +2371,6 @@ static bool CheckUnaryTypeTraitTypeCompleteness(Sema &S,
// these class templates. We also try to follow any GCC documented behavior
// in these expressions to ensure portability of standard libraries.
switch (UTT) {
- // FIXME: These shouldn't be UnaryTypeTraits as they aren't traits on types.
- case UTT_IsLvalueExpr:
- case UTT_IsRvalueExpr:
- assert(0 && "Expression traits found in type trait handling code.");
-
// is_complete_type somewhat obviously cannot require a complete type.
case UTT_IsCompleteType:
// Fallthrough
OpenPOWER on IntegriCloud