diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-13 20:49:58 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-13 20:49:58 +0000 |
commit | cbb9034e2a04f116bfd8cd62f69ef717afa10933 (patch) | |
tree | 64b8bbe479d4621042e921d9db0327e085cc6b7b /clang/lib/AST/Expr.cpp | |
parent | f6d58ff5c46cdaeda4a43039eeacdcfa94bb8f51 (diff) | |
download | bcm5719-llvm-cbb9034e2a04f116bfd8cd62f69ef717afa10933.tar.gz bcm5719-llvm-cbb9034e2a04f116bfd8cd62f69ef717afa10933.zip |
Eliminate BinaryTypeTraitExpr
There's nothing special about type traits accepting two arguments.
This commit eliminates BinaryTypeTraitExpr and switches all related handling
over to TypeTraitExpr.
Also fixes a CodeGen failure with variadic type traits appearing in a
non-constant expression.
The BTT/TT prefix and evaluation code is retained as-is for now but will soon
be further cleaned up.
This is part of the ongoing work to unify type traits.
llvm-svn: 197273
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r-- | clang/lib/AST/Expr.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index d9776a14223..6060f8bf2f8 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/lib/AST/Expr.cpp @@ -2799,7 +2799,6 @@ bool Expr::HasSideEffects(const ASTContext &Ctx) const { case CXXScalarValueInitExprClass: case TypeTraitExprClass: case UnaryTypeTraitExprClass: - case BinaryTypeTraitExprClass: case ArrayTypeTraitExprClass: case ExpressionTraitExprClass: case CXXNoexceptExprClass: |