llvm.org GIT mirror llvm / f90a5e0
[ThinLTO] Make llvm-lto module ID numbering consistent with linkers The module ID numbering typically starts at 0 (in both the new and old LTO APIs, used by linkers). Make llvm-lto consistent with that. Split out of D46699. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332476 91177308-0d34-0410-b5e6-96231b3b80d8 Teresa Johnson 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
379379 ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename + "': ");
380380 std::unique_ptr MB =
381381 ExitOnErr(errorOrToExpected(MemoryBuffer::getFileOrSTDIN(Filename)));
382 ExitOnErr(readModuleSummaryIndex(*MB, CombinedIndex, ++NextModuleId));
382 ExitOnErr(readModuleSummaryIndex(*MB, CombinedIndex, NextModuleId++));
383383 }
384384 std::error_code EC;
385385 assert(!OutputFilename.empty());