r323294 - Attempt to fix implicit-fallthrough warning after r323218.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 23 17:47:22 PST 2018


Author: nico
Date: Tue Jan 23 17:47:22 2018
New Revision: 323294

URL: http://llvm.org/viewvc/llvm-project?rev=323294&view=rev
Log:
Attempt to fix implicit-fallthrough warning after r323218.

Modified:
    cfe/trunk/lib/Format/UnwrappedLineParser.cpp

Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.cpp?rev=323294&r1=323293&r2=323294&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.cpp (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.cpp Tue Jan 23 17:47:22 2018
@@ -344,6 +344,7 @@ void UnwrappedLineParser::parseLevel(boo
         break;
       }
       // Else, if it is 'default:', fall through to the case handling.
+      LLVM_FALLTHROUGH;
     }
     case tok::kw_case:
       if (Style.Language == FormatStyle::LK_JavaScript &&




More information about the cfe-commits mailing list