summaryrefslogtreecommitdiffstats
path: root/clang/AST/Expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/AST/Expr.cpp')
-rw-r--r--clang/AST/Expr.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/AST/Expr.cpp b/clang/AST/Expr.cpp
index f02e817f065..f979c7aa7b5 100644
--- a/clang/AST/Expr.cpp
+++ b/clang/AST/Expr.cpp
@@ -357,9 +357,6 @@ Expr::isLvalueResult Expr::isLvalue() const {
if (TR->isFunctionType()) // from isObjectType()
return LV_NotObjectType;
- if (TR->isVoidType())
- return LV_IncompleteVoidType;
-
if (TR->isReferenceType()) // C++ [expr]
return LV_Valid;
OpenPOWER on IntegriCloud