[LLVMdev] Possible Typo in SelectionDAGLowering::visitShuffleVector
Bill Wendling
isanbard at gmail.com
Fri Aug 21 11:16:33 PDT 2009
On Aug 21, 2009, at 8:49 AM, Marius Wachtler 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;
> }
>
That's not good. Looks like a major typo. Fixed. Thanks for catching it!
-bw
More information about the llvm-dev
mailing list