mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[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. llvm-svn: 332476
This commit is contained in:
parent
83c34b486e
commit
abbed81733
@ -380,7 +380,7 @@ static void createCombinedModuleSummaryIndex() {
|
||||
ExitOnError ExitOnErr("llvm-lto: error loading file '" + Filename + "': ");
|
||||
std::unique_ptr<MemoryBuffer> MB =
|
||||
ExitOnErr(errorOrToExpected(MemoryBuffer::getFileOrSTDIN(Filename)));
|
||||
ExitOnErr(readModuleSummaryIndex(*MB, CombinedIndex, ++NextModuleId));
|
||||
ExitOnErr(readModuleSummaryIndex(*MB, CombinedIndex, NextModuleId++));
|
||||
}
|
||||
std::error_code EC;
|
||||
assert(!OutputFilename.empty());
|
||||
|
Loading…
Reference in New Issue
Block a user