llvm.org GIT mirror llvm / 83d2f07
Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303597 91177308-0d34-0410-b5e6-96231b3b80d8 Galina Kistanova 2 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
21152115 break;
21162116 default:
21172117 setError("Unexpected token. Expected Key or Block End", T);
2118 LLVM_FALLTHROUGH;
21182119 case Token::TK_Error:
21192120 IsAtEnd = true;
21202121 CurrentEntry = nullptr;
21272128 return increment();
21282129 case Token::TK_FlowMappingEnd:
21292130 getNext();
2131 LLVM_FALLTHROUGH;
21302132 case Token::TK_Error:
21312133 // Set this to end iterator.
21322134 IsAtEnd = true;
21692171 default:
21702172 setError( "Unexpected token. Expected Block Entry or Block End."
21712173 , T);
2174 LLVM_FALLTHROUGH;
21722175 case Token::TK_Error:
21732176 IsAtEnd = true;
21742177 CurrentEntry = nullptr;
21972200 return increment();
21982201 case Token::TK_FlowSequenceEnd:
21992202 getNext();
2203 LLVM_FALLTHROUGH;
22002204 case Token::TK_Error:
22012205 // Set this to end iterator.
22022206 IsAtEnd = true;