File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1021,9 +1021,8 @@ ModuleImport::getConstantsToConvert(llvm::Constant *constant) {
10211021 llvm::Constant *current = workList.back ();
10221022 // Collect all dependencies of the current constant and add them to the
10231023 // adjacency list if none has been computed before.
1024- auto adjacencyIt = adjacencyLists.find (current);
1025- if (adjacencyIt == adjacencyLists.end ()) {
1026- adjacencyIt = adjacencyLists.try_emplace (current).first ;
1024+ auto [adjacencyIt, inserted] = adjacencyLists.try_emplace (current);
1025+ if (inserted) {
10271026 // Add all constant operands to the adjacency list and skip any other
10281027 // values such as basic block addresses.
10291028 for (llvm::Value *operand : current->operands ())
You can’t perform that action at this time.
0 commit comments