[PATCH] D32850: [ArgPromotion] Fix a truncated variable

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 04:07:38 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL302137: [ArgPromotion] Fix a truncated variable (authored by mstorsjo).

Changed prior to commit:
  https://reviews.llvm.org/D32850?vs=97795&id=97808#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32850

Files:
  llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp


Index: llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -247,7 +247,7 @@
           if (!ArgIndex.second.empty()) {
             Ops.reserve(ArgIndex.second.size());
             Type *ElTy = V->getType();
-            for (unsigned long II : ArgIndex.second) {
+            for (auto II : ArgIndex.second) {
               // Use i32 to index structs, and i64 for others (pointers/arrays).
               // This satisfies GEP constraints.
               Type *IdxTy =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32850.97808.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170504/294856e0/attachment.bin>


More information about the llvm-commits mailing list