From 5ca4d323fe288de17621e7f633c7d3db6c47e77d 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);