Skip to content

Commit 62b7d16

Browse files
authored
Merge pull request #6803 from mavasani/UserDefinedConversion_CA1508
Bail out from conversion inference for user-defined conversions
2 parents 3f7c09d + 20c4d3f commit 62b7d16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Utilities/FlowAnalysis/FlowAnalysis/Analysis/PointsToAnalysis/PointsToAnalysis.PointsToDataFlowOperationVisitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,7 @@ public override PointsToAbstractValue VisitConversion(IConversionOperation opera
11421142
{
11431143
// Conservatively handle user defined conversions as escaping operations.
11441144
HandleEscapingOperation(operation, operation.Operand);
1145+
return value;
11451146
}
11461147

11471148
ConversionInference? inference = null;

0 commit comments

Comments
 (0)