[LLVMdev] Possible Typo in SelectionDAGLowering::visitShuffleVector

Mon Ping monping at apple.com
Fri Aug 21 11:17:18 PDT 2009


Hi,

Your fix looks good. Please commit.

Thanks,
-- Mon Ping  

On Aug 21, 2009, at 9:49 AM, Marius Wachtler <malloc at inode.at> wrote:

> Hello
>
> While building LLVM, the compiler (static analysis) is giving me a  
> warning about "if (RangeUse[0] == 0 && RangeUse[0] == 0) {".
> Can somebody familar with the codebase look over it, maybe this  
> should be "if (RangeUse[0] == 0 && RangeUse[1] == 0) {", otherwise  
> sorry for the noise.
>
>
>
> Index: F:/dev/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
> ===================================================================
> --- F:/dev/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp     
> (revision 79629)
> +++ F:/dev/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp     
> (working copy)
> @@ -2522,7 +2522,7 @@
>        }
>      }
>
> -    if (RangeUse[0] == 0 && RangeUse[0] == 0) {
> +    if (RangeUse[0] == 0 && RangeUse[1] == 0) {
>        setValue(&I, DAG.getUNDEF(VT));  // Vectors are not used.
>        return;
>      }
>
> Marius Wachtler
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list