aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
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
commit636e258a53b20695e841a70774f42c052c4c0bfd (patch)
tree01ce64830a3fe241f6bef46b985314f797db1810 /lib/CodeGen/SelectionDAG
parent3c2734c82bbd9fd6524a541a85c4a228c6648b9d (diff)
downloadexternal_llvm-636e258a53b20695e841a70774f42c052c4c0bfd.zip
external_llvm-636e258a53b20695e841a70774f42c052c4c0bfd.tar.gz
external_llvm-636e258a53b20695e841a70774f42c052c4c0bfd.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 1ba63c0..b11ab0e 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;
}