aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-19 05:28:12 +0000
committerChris Lattner <sabre@nondot.org>2009-04-19 05:28:12 +0000
commit17a783055a41a44fda76b1747ebe6fd8ac2ba00a (patch)
treeeb87344b5fc3eaf7c6cf5d0d6ed06ef01882793a /lib/Sema/Sema.h
parent38c5ebd7b1b65304c7b5c7b9bf3f9162df22e77d (diff)
run the jump checker on blocks, even though they don't have gotos,
they do allow switches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69510 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.h')
-rw-r--r--lib/Sema/Sema.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index e8742e8e51..e4af8a5c46 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -107,6 +107,10 @@ struct BlockSemaInfo {
/// block.
llvm::SmallVector<SwitchStmt*, 8> SwitchStack;
+ /// SavedFunctionNeedsScopeChecking - This is the value of
+ /// CurFunctionNeedsScopeChecking at the point when the block started.
+ bool SavedFunctionNeedsScopeChecking;
+
/// PrevBlockInfo - If this is nested inside another block, this points
/// to the outer block.
BlockSemaInfo *PrevBlockInfo;