diff options
author | Duncan Sands <baldrick@free.fr> | 2007-07-12 13:51:39 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-07-12 13:51:39 +0000 |
commit | bb821dd79bf13c5137760c8fe0fa721912c4276d (patch) | |
tree | 69f34dd0d1509e53ee8c8c4e5797292d3ee31001 /lib | |
parent | 3b0a7ea66e338e9a91a2203ceda494c01a68ac24 (diff) | |
download | external_llvm-bb821dd79bf13c5137760c8fe0fa721912c4276d.zip external_llvm-bb821dd79bf13c5137760c8fe0fa721912c4276d.tar.gz external_llvm-bb821dd79bf13c5137760c8fe0fa721912c4276d.tar.bz2 |
The type ids making up a filter are unsigned, and
should be output as unsigned values. Checked against
gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index f86c4d5..257a776 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"); } |