diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-17 19:33:52 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-17 19:33:52 +0000 | 
| commit | a7fe922b98bb45be7dce7c1cfe668ec27eeddc74 (patch) | |
| tree | e9648f5bddc775b842e53141d7c9748482f7115a /lib/CodeGen/SafeStackLayout.cpp | |
| parent | c3aee98e721333f265a88d6bf348e6e468f027d4 (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/SafeStackLayout.cpp')
| -rw-r--r-- | lib/CodeGen/SafeStackLayout.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lib/CodeGen/SafeStackLayout.cpp b/lib/CodeGen/SafeStackLayout.cpp index b8190e0f2153..fb433c1856a6 100644 --- a/lib/CodeGen/SafeStackLayout.cpp +++ b/lib/CodeGen/SafeStackLayout.cpp @@ -100,7 +100,8 @@ void StackLayout::layoutObject(StackObject &Obj) {    }    // Split starting and ending regions if necessary. -  for (StackRegion &R : Regions) { +  for (unsigned i = 0; i < Regions.size(); ++i) { +    StackRegion &R = Regions[i];      if (Start > R.Start && Start < R.End) {        StackRegion R0 = R;        R.Start = R0.End = Start; | 
