diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-04 20:51:43 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-04 20:51:43 +0100 |
commit | bb96d30084b6e6c680689435c9d5ee665a106ca0 (patch) | |
tree | c39540918b607ac4a0b74429fb8ef53cbe8bb818 /lib | |
parent | 27096caef97e46d150cd53eab47e1ada83729e10 (diff) | |
parent | a9020249400f65612fc9f1c0f5cfebe50a58ff85 (diff) | |
download | llvm-bb96d30084b6e6c680689435c9d5ee665a106ca0.tar.gz llvm-bb96d30084b6e6c680689435c9d5ee665a106ca0.tar.bz2 llvm-bb96d30084b6e6c680689435c9d5ee665a106ca0.tar.xz |
Merge branch 'release-3.2' into embtk-support-release-3.2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/SROA.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index ccc2f7a77b..062ec05342 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -2160,6 +2160,9 @@ static bool isIntegerWideningViable(const DataLayout &TD, AllocaPartitioning::const_use_iterator I, AllocaPartitioning::const_use_iterator E) { uint64_t SizeInBits = TD.getTypeSizeInBits(AllocaTy); + // Don't create integer types larger than the maximum bitwidth. + if (SizeInBits > IntegerType::MAX_INT_BITS) + return false; // Don't try to handle allocas with bit-padding. if (SizeInBits != TD.getTypeStoreSizeInBits(AllocaTy)) |