From 4ed50a14b203305f3f9ed450830a895cf98ccc0f Mon Sep 17 00:00:00 2001 From: River Riddle Date: Sun, 26 May 2019 13:01:39 -0700 Subject: [PATCH] NFC: Cleanup a switch statement that only has a default case. -- PiperOrigin-RevId: 250062529 --- mlir/lib/Parser/Parser.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp index c2761a2..a1e2b09 100644 --- a/mlir/lib/Parser/Parser.cpp +++ b/mlir/lib/Parser/Parser.cpp @@ -2475,14 +2475,9 @@ ParseResult FunctionParser::parseBlockBody(Block *block) { builder.setInsertionPointToEnd(block); // Parse the list of operations that make up the body of the block. - while (getToken().isNot(Token::caret_identifier, Token::r_brace)) { - switch (getToken().getKind()) { - default: - if (parseOperation()) - return failure(); - break; - } - } + while (getToken().isNot(Token::caret_identifier, Token::r_brace)) + if (parseOperation()) + return failure(); return success(); } -- 2.7.4