diff options
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp index d8dca5d5c63..21e2cc56075 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugCrossExSubsection.cpp @@ -42,7 +42,9 @@ uint32_t DebugCrossModuleExportsSubsection::calculateSerializedSize() const { Error DebugCrossModuleExportsSubsection::commit( BinaryStreamWriter &Writer) const { for (const auto &M : Mappings) { - if (auto EC = Writer.writeObject(M)) + if (auto EC = Writer.writeInteger(M.first)) + return EC; + if (auto EC = Writer.writeInteger(M.second)) return EC; } return Error::success(); |

