]> granicus.if.org Git - clang/commit
Fix several issues in checking of address-of expressions.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 4 Aug 2008 20:02:37 +0000 (20:02 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 4 Aug 2008 20:02:37 +0000 (20:02 +0000)
commit1e76ce6e5f892c89c9958657d44c323fb70f748c
treee897922f7483e59c12290709e39935bd3727ceb8
parentfc1d340169265375704404a8eec1d8acf1c2038d
Fix several issues in checking of address-of expressions.
 - clang was erroneously accepting address-of applied to lvalue
   expressions involving pointer arithmetic.
 - clang was erroneously rejecting address-of applied to deref
   expressions of pointer-typed variables.
 - Improved existing test case.
 - Fixes: <rdar://problem/6113867>, <rdar://problem/6080158>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54326 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/expr-address-of.c