We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8837226 commit 3fa4a26Copy full SHA for 3fa4a26
llvm/lib/LTO/LTOModule.cpp
@@ -620,13 +620,11 @@ void LTOModule::parseSymbols() {
620
}
621
622
// make symbols for all undefines
623
- for (StringMap<NameAndAttributes>::iterator u =_undefines.begin(),
624
- e = _undefines.end(); u != e; ++u) {
+ for (const auto &[Key, Value] : _undefines) {
625
// If this symbol also has a definition, then don't make an undefine because
626
// it is a tentative definition.
627
- if (_defines.count(u->getKey())) continue;
628
- NameAndAttributes info = u->getValue();
629
- _symbols.push_back(info);
+ if (!_defines.contains(Key))
+ _symbols.push_back(Value);
630
631
632
0 commit comments