commit | fd360c3e242e6317b241107a1db2b7d4a6276476 | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Fri Dec 14 20:43:49 2012 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Fri Dec 14 20:43:49 2012 +0000 |
tree | 07218a9afeb529fbf632bac77c5b30c143adf1b4 | |
parent | d3eb4f46f011f5880e09862559c17f03e38bef39 [diff] [blame] |
Fix a crash in ValueTracking on vectors of pointers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170240 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index b86bc37..64e132e 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/lib/Analysis/ValueTracking.cpp
@@ -953,7 +953,7 @@ return true; } - unsigned BitWidth = getBitWidth(V->getType(), TD); + unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), TD); // X | Y != 0 if X != 0 or Y != 0. Value *X = 0, *Y = 0;