From: Chris Lattner Date: Sun, 26 Aug 2007 06:03:04 +0000 (+0000) Subject: remove some dead enum values. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7c98959345da4cbfa4988b1806e111c40d4f335;p=clang remove some dead enum values. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41430 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Scope.h b/include/clang/Parse/Scope.h index 7f721f803d..b7a47c55ed 100644 --- a/include/clang/Parse/Scope.h +++ b/include/clang/Parse/Scope.h @@ -38,15 +38,7 @@ public: /// ContinueScope - This is a while,do,for, which can have continue /// stmt embedded into it. - ContinueScope = 0x04, - - /// HasBreak - This flag is set on 'BreakScope' scopes, when they actually - /// do contain a break stmt. - HasBreak = 0x08, - - /// HasContinue - This flag is set on 'ContinueScope' scopes, when they - /// actually do contain a continue stmt. - HasContinue = 0x10 + ContinueScope = 0x04 }; private: /// The parent scope for this scope. This is null for the translation-unit @@ -118,8 +110,6 @@ public: /// Init - This is used by the parser to implement scope caching. /// void Init(Scope *Parent, unsigned ScopeFlags) { - assert((ScopeFlags & (HasBreak|HasContinue)) == 0 && - "These flags can't be set in ctor!"); AnyParent = Parent; Depth = AnyParent ? AnyParent->Depth+1 : 0; Flags = ScopeFlags;