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

Galina Kistanova via llvm-commits llvm-commits at lists.llvm.org
Wed May 31 15:16:24 PDT 2017


Author: gkistanova
Date: Wed May 31 17:16:24 2017
New Revision: 304361

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

Modified:
    llvm/trunk/lib/Analysis/ValueTracking.cpp

Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=304361&r1=304360&r2=304361&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Wed May 31 17:16:24 2017
@@ -2339,6 +2339,7 @@ bool llvm::ComputeMultiple(Value *V, uns
   case Instruction::SExt:
     if (!LookThroughSExt) return false;
     // otherwise fall through to ZExt
+    LLVM_FALLTHROUGH;
   case Instruction::ZExt:
     return ComputeMultiple(I->getOperand(0), Base, Multiple,
                            LookThroughSExt, Depth+1);




More information about the llvm-commits mailing list