[llvm-commits] [llvm] r112809 - /llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h

Lang Hames lhames at gmail.com
Thu Sep 2 00:39:56 PDT 2010


Oops. Cheers for that!

- Lang.

On Thu, Sep 2, 2010 at 5:08 PM, Chandler Carruth <chandlerc at gmail.com>wrote:

> Author: chandlerc
> Date: Thu Sep  2 02:08:05 2010
> New Revision: 112809
>
> URL: http://llvm.org/viewvc/llvm-project?rev=112809&view=rev
> Log:
> Silence an ambiguous else warning from GCC.
>
> Modified:
>    llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h
>
> Modified: llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h?rev=112809&r1=112808&r2=112809&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h (original)
> +++ llvm/trunk/lib/CodeGen/PBQP/HeuristicBase.h Thu Sep  2 02:08:05 2010
> @@ -173,12 +173,13 @@
>       bool finished = false;
>
>       while (!finished) {
> -        if (!optimalReduce())
> +        if (!optimalReduce()) {
>           if (impl().heuristicReduce()) {
>             getSolver().recordRN();
>           } else {
>             finished = true;
>           }
> +        }
>       }
>     }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100902/17d9b077/attachment.html>


More information about the llvm-commits mailing list