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
This commit is contained in:
Bill Wendling 2009-08-21 18:16:06 +00:00
parent 3c2734c82b
commit 636e258a53

View File

@ -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;
}