From: Galina Kistanova Date: Sat, 3 Jun 2017 05:19:10 +0000 (+0000) Subject: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7273b29259d9fe1abc6c35cdb084e9a9ffbe7818;p=llvm Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304637 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 3953198fe60..9a7882211ba 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -1823,6 +1823,7 @@ static PHINode *getLoopPhiForCounter(Value *IncV, Loop *L, DominatorTree *DT) { // An IV counter must preserve its type. if (IncI->getNumOperands() == 2) break; + LLVM_FALLTHROUGH; default: return nullptr; }