Browse Source

Added conditional around AggressiveInlining

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
883fedb5eb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs

+ 2
- 0
IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs View File

@ -54,7 +54,9 @@ namespace IPA.Config.Stores
Local = builder; Local = builder;
} }
#if NET4
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
#endif
public static implicit operator LocalBuilder(AllocatedLocal loc) => loc.Local; public static implicit operator LocalBuilder(AllocatedLocal loc) => loc.Local;
public void Dealloc() => allocator.Deallocate(this); public void Dealloc() => allocator.Deallocate(this);


Loading…
Cancel
Save