Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 1ddbad1

Browse files
committed
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
1 parent eba2561 commit 1ddbad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/IPO/ArgumentPromotion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ DoPromotion(Function *F, SmallPtrSetImpl<Argument *> &ArgsToPromote,
826826
if (!ArgIndex.second.empty()) {
827827
Ops.reserve(ArgIndex.second.size());
828828
Type *ElTy = V->getType();
829-
for (unsigned long II : ArgIndex.second) {
829+
for (auto II : ArgIndex.second) {
830830
// Use i32 to index structs, and i64 for others (pointers/arrays).
831831
// This satisfies GEP constraints.
832832
Type *IdxTy = (ElTy->isStructTy() ?

0 commit comments

Comments
 (0)