Perform correct actions numbers/sizes computation
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 11 May 2007 08:47:35 +0000 (08:47 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 11 May 2007 08:47:35 +0000 (08:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36988 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index 29f428b7e9b798f95d4da89ea28707ce0b5c4f23..04ee9e5796289fe6a4bfd01c268448ae45b9b9de 100644 (file)
@@ -2958,13 +2958,11 @@ private:
         // Record the first action of the landing pad site.
         FirstAction = SizeActions + SizeSiteActions - SizeAction + 1;
       }
-
-      unsigned M = LandingPad.BeginLabels.size();
-      for (unsigned j = 0; j!=M; ++j)
-        Actions.push_back(FirstAction);
+      Actions.push_back(FirstAction);
         
       // Compute this sites contribution to size.
-      SizeActions += SizeSiteActions*M;
+      SizeActions += SizeSiteActions;
+      unsigned M = LandingPad.BeginLabels.size();
       SizeSites += M*(sizeof(int32_t) +               // Site start.
                       sizeof(int32_t) +               // Site length.
                       sizeof(int32_t) +               // Landing pad.