Skip to content

Commit

Permalink
Merge pull request dotnet#519 from nattress/bad_devirt
Browse files Browse the repository at this point in the history
Remove overly eager devirtualization optimization
  • Loading branch information
nattress authored Dec 5, 2019
2 parents b2073bd + ca2c99c commit 1813e1e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public MethodDesc ResolveVirtualMethod(MethodDesc declMethod, TypeDesc implType)

protected virtual MethodDesc ResolveVirtualMethod(MethodDesc declMethod, DefType implType)
{
// Quick check: if decl matches impl, we're done.
if (declMethod.OwningType == implType)
return declMethod;

MethodDesc impl;

if (declMethod.OwningType.IsInterface)
Expand Down

0 comments on commit 1813e1e

Please sign in to comment.