Don't crash when trying to capture persistent variables in a block.
authorSean Callanan <scallanan@apple.com>
Fri, 26 Aug 2016 18:12:39 +0000 (18:12 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 26 Aug 2016 18:12:39 +0000 (18:12 +0000)
commitfc670cf6d0cea44f3a5d96baaa4755c07b904987
treedc59e6396a8e49dd27b4138605d173862ba8be28
parent58f505ba24761c22314a85874580679c209388b5
Don't crash when trying to capture persistent variables in a block.

Reports an error instead.  We can fix this later to make persistent variables
work, but right now we hit an LLVM assertion if we get this wrong.

<rdar://problem/27770298>

llvm-svn: 279850
lldb/packages/Python/lldbsuite/test/lang/c/blocks/TestBlocks.py
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h