aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-10 21:04:53 +0000
committerDan Gohman <gohman@apple.com>2010-03-10 21:04:53 +0000
commit05719e6bdef6162bcd4c74882f28ad88c6d9747a (patch)
tree7ed6a1e1d1ad282a95b3dfa67f9aa20b8a016ccf /lib
parentc896c36b8026bbba0e4bd9b70a050852b0d1b4a7 (diff)
downloadexternal_llvm-05719e6bdef6162bcd4c74882f28ad88c6d9747a.zip
external_llvm-05719e6bdef6162bcd4c74882f28ad88c6d9747a.tar.gz
external_llvm-05719e6bdef6162bcd4c74882f28ad88c6d9747a.tar.bz2
Fix another bitwidth calculation to handle vector types; based on a
patch by Micah Villmow for PR6572. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 3be6b43..82bf478 100644
--- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5409,7 +5409,7 @@ SDValue DAGCombiner::visitSTORE(SDNode *N) {
if (SimplifyDemandedBits(Value,
APInt::getLowBitsSet(
Value.getValueType().getScalarType().getSizeInBits(),
- ST->getMemoryVT().getSizeInBits())))
+ ST->getMemoryVT().getScalarType().getSizeInBits())))
return SDValue(N, 0);
}