]> granicus.if.org Git - clang/commit
Change Expr::isLvalue() to allow the "void" type. This fixes bz2000 submitted by...
authorSteve Naroff <snaroff@apple.com>
Sun, 10 Feb 2008 00:30:18 +0000 (00:30 +0000)
committerSteve Naroff <snaroff@apple.com>
Sun, 10 Feb 2008 00:30:18 +0000 (00:30 +0000)
commit75ceedf377727cb39a4fbeb36f11462713b093f5
treeeddd4ad2a5bc8933f9af05718e05fea01009fb5c
parenta28ef8b5c6ea452472d89041128fac8b683fe968
Change Expr::isLvalue() to allow the "void" type. This fixes bz2000 submitted by Neil Booth.

Neil, can you point me to the place in the C99 spec that says this is allowed? I thought Expr::isLvalue() conformed to the spec, which says "C99 6.3.2.1: an lvalue is an expression with an object type or an incomplete type other than void.". Please advise.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46917 91177308-0d34-0410-b5e6-96231b3b80d8
AST/Expr.cpp
test/Sema/deref.c