summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-14 21:43:58 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-14 21:43:58 +0100
commite64e32eaf28560bd36c3ff0b10a94048fd465c2c (patch)
tree20ba460a7edb8ee28766e6df4ca2baaedea4888e /lib
parent7bf79db6e4943f51a5164bf79153627b9739c035 (diff)
parent2e0b25a6327f14cbf0fffb9df0251ca32408a52b (diff)
downloadllvm-e64e32eaf28560bd36c3ff0b10a94048fd465c2c.tar.gz
llvm-e64e32eaf28560bd36c3ff0b10a94048fd465c2c.tar.bz2
llvm-e64e32eaf28560bd36c3ff0b10a94048fd465c2c.tar.xz
Merge branch 'release-3.2' into embtk-support-release-3.2
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/SROA.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp
index 062ec05342..2d518f735b 100644
--- a/lib/Transforms/Scalar/SROA.cpp
+++ b/lib/Transforms/Scalar/SROA.cpp
@@ -2201,7 +2201,7 @@ static bool isIntegerWideningViable(const DataLayout &TD,
if (RelBegin == 0 && RelEnd == Size)
WholeAllocaOp = true;
if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) {
- if (ITy->getBitWidth() < TD.getTypeStoreSize(ITy))
+ if (ITy->getBitWidth() < TD.getTypeStoreSizeInBits(ITy))
return false;
continue;
}
@@ -2217,7 +2217,7 @@ static bool isIntegerWideningViable(const DataLayout &TD,
if (RelBegin == 0 && RelEnd == Size)
WholeAllocaOp = true;
if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) {
- if (ITy->getBitWidth() < TD.getTypeStoreSize(ITy))
+ if (ITy->getBitWidth() < TD.getTypeStoreSizeInBits(ITy))
return false;
continue;
}