summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-21 18:16:06 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-21 18:16:06 +0000
commitdff54eff8e4bc3cc2b56f03f2fe136823264521c (patch)
treebdb3f7c47ae85cefec65ed70b230be8f7a807591 /llvm/lib
parenta39f96c6ed1b1e4fa60ec0cc81306da2d1674307 (diff)
downloadbcm5719-llvm-dff54eff8e4bc3cc2b56f03f2fe136823264521c.tar.gz
bcm5719-llvm-dff54eff8e4bc3cc2b56f03f2fe136823264521c.zip
Fix typo. Should check both values of RangeUse for 0. Patch by Marius Wachtler.
llvm-svn: 79649
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 1ba63c01808..b11ab0ec3ba 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud