The index into the actions table is a ULEB128 not a SLEB128.
authorDuncan Sands <baldrick@free.fr>
Tue, 15 May 2007 13:54:14 +0000 (13:54 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 15 May 2007 13:54:14 +0000 (13:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37084 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfWriter.cpp

index ec19fc208c3949b0adf04dea74596785321bf92f..480e9c102bc234329ac5a7693f24e406d10ce6bc 100644 (file)
@@ -2975,7 +2975,7 @@ private:
       SizeSites += M*(sizeof(int32_t) +               // Site start.
                       sizeof(int32_t) +               // Site length.
                       sizeof(int32_t) +               // Landing pad.
-                      Asm->SizeSLEB128(FirstAction)); // Action.
+                      Asm->SizeULEB128(FirstAction)); // Action.
     }
     
     // Final tallies.