From: Bill Wendling Date: Fri, 21 Aug 2009 18:16:06 +0000 (+0000) Subject: Fix typo. Should check both values of RangeUse for 0. Patch by Marius Wachtler. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=636e258a53b20695e841a70774f42c052c4c0bfd;p=oota-llvm.git Fix typo. Should check both values of RangeUse for 0. Patch by Marius Wachtler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79649 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 1ba63c01808..b11ab0ec3ba 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2522,7 +2522,7 @@ void SelectionDAGLowering::visitShuffleVector(User &I) { } } - if (RangeUse[0] == 0 && RangeUse[0] == 0) { + if (RangeUse[0] == 0 && RangeUse[1] == 0) { setValue(&I, DAG.getUNDEF(VT)); // Vectors are not used. return; }