From 883fedb5eb9acef22f4b75c6c2f694cf250fba17 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Mon, 30 Mar 2020 00:06:56 -0500 Subject: [PATCH] Added conditional around AggressiveInlining --- IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs b/IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs index 11a64e4f..43b766ed 100644 --- a/IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs +++ b/IPA.Loader/Config/Stores/GeneratedStoreImpl/Utility.cs @@ -54,7 +54,9 @@ namespace IPA.Config.Stores Local = builder; } +#if NET4 [MethodImpl(MethodImplOptions.AggressiveInlining)] +#endif public static implicit operator LocalBuilder(AllocatedLocal loc) => loc.Local; public void Dealloc() => allocator.Deallocate(this);