[llvm] r262109 - Suppress an uncovered switch warning [NFC]

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 26 21:27:26 PST 2016


Thanks.

-- Sean Silva

On Fri, Feb 26, 2016 at 9:18 PM, Philip Reames via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: reames
> Date: Fri Feb 26 23:18:30 2016
> New Revision: 262109
>
> URL: http://llvm.org/viewvc/llvm-project?rev=262109&view=rev
> Log:
> Suppress an uncovered switch warning [NFC]
>
>
> Modified:
>     llvm/trunk/lib/Analysis/LazyValueInfo.cpp
>
> Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=262109&r1=262108&r2=262109&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
> +++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Fri Feb 26 23:18:30 2016
> @@ -977,6 +977,7 @@ bool LazyValueInfoCache::solveBlockValue
>        // that input doesn't include C + C2.
>        ConstantInt *CIAdded;
>        switch (Pred) {
> +      default: break;
>        case ICmpInst::ICMP_EQ:
>          if (match(SI->getFalseValue(), m_Add(m_Specific(A),
>                                               m_ConstantInt(CIAdded)))) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160226/f1c917f2/attachment.html>


More information about the llvm-commits mailing list