]> granicus.if.org Git - clang/commit
fix marking of nested blocks with the "hasBlockDeclRefExprs" to
authorChris Lattner <sabre@nondot.org>
Tue, 21 Apr 2009 22:26:47 +0000 (22:26 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Apr 2009 22:26:47 +0000 (22:26 +0000)
commit17f3a6d0d8026238830eacd0d765267a6ced4edc
tree9769a2c33f1a5bd4329adff237f72a5d5ad61cc1
parent668c1a4fdcc56bdd050256b1688e116fe84b72db
fix marking of nested blocks with the "hasBlockDeclRefExprs" to
mark exactly the blocks which have references that are "live through".
This fixes a rejects valid:
rdar://6808730 - [sema] [blocks] block rejected at global scope

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