]> granicus.if.org Git - clang/commit
Unify the BlockDeclRefExpr and DeclRefExpr paths so that
authorJohn McCall <rjmccall@apple.com>
Sat, 10 Mar 2012 03:05:10 +0000 (03:05 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 10 Mar 2012 03:05:10 +0000 (03:05 +0000)
commitdd2ecee313b558a9b621ec003b45e0fbc83508d7
treed071b135e22daff2be22ca0e14c4af47a4952820
parent89da8cf16b671845660711d3dd4174a809ca6cca
Unify the BlockDeclRefExpr and DeclRefExpr paths so that
we correctly emit loads of BlockDeclRefExprs even when they
don't qualify as ODR-uses.  I think I'm adequately convinced
that BlockDeclRefExpr can die.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/blocks-cxx11.cpp [new file with mode: 0644]