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 | 0263dd1d7f5c79642555869bfa8c3f1b43e29ed2 (patch) | |
| tree | 80ba57d3c60464384dee88c3988425a396e8fdea /llvm/lib/CodeGen/DwarfWriter.cpp | |
| parent | b8bca52c7d6cc59e275676a2b58f62af998f9fea (diff) | |
| download | bcm5719-llvm-0263dd1d7f5c79642555869bfa8c3f1b43e29ed2.tar.gz bcm5719-llvm-0263dd1d7f5c79642555869bfa8c3f1b43e29ed2.zip | |
The type ids making up a filter are unsigned, and
should be output as unsigned values. Checked against
gcc.
llvm-svn: 39775
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index f86c4d5d76a..257a776d2f1 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/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"); } |

