The index into the actions table is a ULEB128 not a SLEB128.
llvm-svn: 37084
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index ec19fc2..480e9c1 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -2975,7 +2975,7 @@
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.