File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3684,9 +3684,8 @@ BinaryFunction::BasicBlockListType BinaryFunction::dfs() const {
3684
3684
BinaryBasicBlock *BB = Stack.top ();
3685
3685
Stack.pop ();
3686
3686
3687
- if (Visited.find (BB) != Visited. end () )
3687
+ if (! Visited.insert (BB). second )
3688
3688
continue ;
3689
- Visited.insert (BB);
3690
3689
DFS.push_back (BB);
3691
3690
3692
3691
for (BinaryBasicBlock *SuccBB : BB->landing_pads ()) {
@@ -3879,11 +3878,8 @@ void BinaryFunction::disambiguateJumpTables(
3879
3878
JumpTable *JT = getJumpTable (Inst);
3880
3879
if (!JT)
3881
3880
continue ;
3882
- auto Iter = JumpTables.find (JT);
3883
- if (Iter == JumpTables.end ()) {
3884
- JumpTables.insert (JT);
3881
+ if (JumpTables.insert (JT).second )
3885
3882
continue ;
3886
- }
3887
3883
// This instruction is an indirect jump using a jump table, but it is
3888
3884
// using the same jump table of another jump. Try all our tricks to
3889
3885
// extract the jump table symbol and make it point to a new, duplicated JT
You can’t perform that action at this time.
0 commit comments