[llvm] r303457 - Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through.
Galina Kistanova via llvm-commits
llvm-commits at lists.llvm.org
Fri May 19 14:08:28 PDT 2017
Author: gkistanova
Date: Fri May 19 16:08:28 2017
New Revision: 303457
URL: http://llvm.org/viewvc/llvm-project?rev=303457&view=rev
Log:
Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through.
Modified:
llvm/trunk/lib/Support/FormattedStream.cpp
Modified: llvm/trunk/lib/Support/FormattedStream.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FormattedStream.cpp?rev=303457&r1=303456&r2=303457&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FormattedStream.cpp (original)
+++ llvm/trunk/lib/Support/FormattedStream.cpp Fri May 19 16:08:28 2017
@@ -32,6 +32,7 @@ static void UpdatePosition(std::pair<uns
switch (*Ptr) {
case '\n':
Line += 1;
+ LLVM_FALLTHROUGH;
case '\r':
Column = 0;
break;
More information about the llvm-commits
mailing list