diff options
Diffstat (limited to 'tools/gold/gold-plugin.cpp')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index cf207d9dbbb3..6d011bab079d 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -477,7 +477,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, std::unique_ptr<InputFile> Obj = std::move(*ObjOrErr); - Modules.resize(Modules.size() + 1); + Modules.emplace_back(); claimed_file &cf = Modules.back(); cf.handle = file->handle; |