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 43fdd6e commit fd87188Copy full SHA for fd87188
lld/wasm/SymbolTable.cpp
@@ -1009,8 +1009,8 @@ void SymbolTable::handleWeakUndefines() {
1009
}
1010
1011
DefinedFunction *SymbolTable::createUndefinedStub(const WasmSignature &sig) {
1012
- if (stubFunctions.count(sig))
1013
- return stubFunctions[sig];
+ if (auto it = stubFunctions.find(sig); it != stubFunctions.end())
+ return it->second;
1014
LLVM_DEBUG(dbgs() << "createUndefinedStub: " << toString(sig) << "\n");
1015
auto *sym = reinterpret_cast<DefinedFunction *>(make<SymbolUnion>());
1016
sym->isUsedInRegularObj = true;
0 commit comments