Skip to content

Commit 8a8ba3d

Browse files
committed
Explicitly specify StringComparer.Ordinal
for HashSet<string> used to calculate specified symbols, as per PR feedback.
1 parent 7de79cb commit 8a8ba3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.DeadRegionAnalysis/AnalysisEngine.Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal CompositePreprocessorExpressionEvaluator GetPreprocessorExpressionEvalu
8484

8585
internal PreprocessorSymbolTracker GetPreprocessorSymbolTracker()
8686
{
87-
var specifiedSymbols = new HashSet<string>();
87+
var specifiedSymbols = new HashSet<string>(StringComparer.Ordinal);
8888

8989
foreach (var config in _symbolConfigurations)
9090
{

0 commit comments

Comments
 (0)