aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/DwarfWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index f86c4d5d76..257a776d2f 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -3002,7 +3002,7 @@ private:
for(std::vector<unsigned>::const_iterator I = FilterIds.begin(),
E = FilterIds.end(); I != E; ++I) {
FilterOffsets.push_back(Offset);
- Offset -= Asm->SizeSLEB128(*I);
+ Offset -= Asm->SizeULEB128(*I);
}
// Compute sizes for exception table.
@@ -3191,7 +3191,7 @@ private:
// Emit the filter typeids.
for (unsigned j = 0, M = FilterIds.size(); j < M; ++j) {
unsigned TypeID = FilterIds[j];
- Asm->EmitSLEB128Bytes(TypeID);
+ Asm->EmitULEB128Bytes(TypeID);
Asm->EOL("Filter TypeInfo index");
}