llvm.org GIT mirror llvm / 1ddbad1
Merging r302137: ------------------------------------------------------------------------ r302137 | mstorsjo | 2017-05-04 06:54:35 -0400 (Thu, 04 May 2017) | 9 lines [ArgPromotion] Fix a truncated variable This fixes a regression since SVN rev 273808 (which was supposed to not change functionality). The regression caused miscompilations (noted in the wild when targeting AArch64) on platforms with 32 bit long. Differential Revision: https://reviews.llvm.org/D32850 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@303661 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
825825 if (!ArgIndex.second.empty()) {
826826 Ops.reserve(ArgIndex.second.size());
827827 Type *ElTy = V->getType();
828 for (unsigned long II : ArgIndex.second) {
828 for (auto II : ArgIndex.second) {
829829 // Use i32 to index structs, and i64 for others (pointers/arrays).
830830 // This satisfies GEP constraints.
831831 Type *IdxTy = (ElTy->isStructTy() ?