File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -92,20 +92,6 @@ class ValueStorageMap {
92
92
93
93
return valueVector.back ().second ;
94
94
}
95
-
96
- // Replace entry for `oldValue` with an entry for `newValue` preserving the
97
- // the mapped ValueStorage.
98
- void replaceValue (SILValue oldValue, SILValue newValue) {
99
- auto hashIter = valueHashMap.find (oldValue);
100
- assert (hashIter != valueHashMap.end () && " Missing SILValue" );
101
- unsigned idx = hashIter->second ;
102
- valueHashMap.erase (hashIter);
103
-
104
- valueVector[idx].first = newValue;
105
-
106
- auto hashResult = valueHashMap.insert (std::make_pair (newValue, idx));
107
- assert (hashResult.second && " SILValue already mapped" );
108
- }
109
95
};
110
96
} // end anonymous namespace
111
97
You can’t perform that action at this time.
0 commit comments