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 c54e6fb commit 42e5592Copy full SHA for 42e5592
llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
@@ -398,9 +398,10 @@ Error StaticLibraryDefinitionGenerator::tryToGenerate(
398
399
for (const auto &KV : Symbols) {
400
const auto &Name = KV.first;
401
- if (!ObjectFilesMap.count(Name))
+ auto It = ObjectFilesMap.find(Name);
402
+ if (It == ObjectFilesMap.end())
403
continue;
- auto ChildBuffer = ObjectFilesMap[Name];
404
+ auto ChildBuffer = It->second;
405
ChildBufferInfos.insert(
406
{ChildBuffer.getBuffer(), ChildBuffer.getBufferIdentifier()});
407
}
0 commit comments