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) {
1021
1021
llvm::Constant *current = workList.back ();
1022
1022
// Collect all dependencies of the current constant and add them to the
1023
1023
// 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) {
1027
1026
// Add all constant operands to the adjacency list and skip any other
1028
1027
// values such as basic block addresses.
1029
1028
for (llvm::Value *operand : current->operands ())
You can’t perform that action at this time.
0 commit comments