[llvm] r303595 - Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through.

Galina Kistanova via llvm-commits llvm-commits at lists.llvm.org
Mon May 22 18:07:19 PDT 2017


Author: gkistanova
Date: Mon May 22 20:07:19 2017
New Revision: 303595

URL: http://llvm.org/viewvc/llvm-project?rev=303595&view=rev
Log:
Added LLVM_FALLTHROUGH to address gcc warning: this statement may fall through.

Modified:
    llvm/trunk/lib/Support/Path.cpp

Modified: llvm/trunk/lib/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Path.cpp?rev=303595&r1=303594&r2=303595&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Path.cpp (original)
+++ llvm/trunk/lib/Support/Path.cpp Mon May 22 20:07:19 2017
@@ -1156,6 +1156,7 @@ file_magic identify_magic(StringRef Magi
     case 0xc4: // ARMNT Windows
       if (Magic[1] == 0x01)
         return file_magic::coff_object;
+      LLVM_FALLTHROUGH;
 
     case 0x90: // PA-RISC Windows
     case 0x68: // mc68K Windows




More information about the llvm-commits mailing list