Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public void SetIsValueType(bool isValueType)
}
else
{
if (_isValueType.Value != isValueType)
{
throw new Exception($"Same type `{ToString()}` used as both ValueType and non-ValueType");
}
// Do nothing. We cannot choose a correct choice, and failing is also unhelpful, as dotnet-pgo is supposed
// to work with traces from the same app over time where a type may have transformed from class to struct
// or vice versa. With this approach, the first assembly on the commandline to push a type to be struct
// or class will reliably win.
}
}

Expand Down