diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-25 01:27:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-25 01:27:20 +0000 |
commit | 0f193b8a6846dab25323788638e760ae03b7cd87 (patch) | |
tree | b89bd3a70578256be2eb53eca270ed7832fcacb8 /lib/Analysis/ValueTracking.cpp | |
parent | a57a36abe7d0b769a495ed886246db157aff4add (diff) |
Use the right method to get the # elements in a CDS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 753ec18994..ca55fcbc6e 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp @@ -105,7 +105,7 @@ void llvm::ComputeMaskedBits(Value *V, const APInt &Mask, // each element. KnownZero.setAllBits(); KnownOne.setAllBits(); APInt Elt(KnownZero.getBitWidth(), 0); - for (unsigned i = 0, e = CDS->getType()->getNumElements(); i != e; ++i) { + for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { Elt = CDS->getElementAsInteger(i); KnownZero &= ~Elt; KnownOne &= Elt; |