]> granicus.if.org Git - clang/commit
Fix code to mark block variables as const to actually work. Fix
authorEli Friedman <eli.friedman@gmail.com>
Sun, 22 Mar 2009 23:00:19 +0000 (23:00 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sun, 22 Mar 2009 23:00:19 +0000 (23:00 +0000)
commit5fdeae17da443c50c62f602733d06193a71b170f
tree058a31c30e66770f8154fa6922d52b76530db63d
parentacddd2e5b91123ab43cef0dd74f7a1829f652458
Fix code to mark block variables as const to actually work.  Fix
isObjCObjectPointerType to work with qualified types.  Adjust test for
changes.

If the SemaExpr changes are wrong or break existing code, feel free to
delete the "ExprTy.addConst();" line and revert my changes to
test/Sema/block-literal.c.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67489 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/Sema/SemaExpr.cpp
test/Sema/block-literal.c