Fix build warning for orig_method (mono/mono#14603)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 24 May 2019 19:34:23 +0000 (15:34 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 24 May 2019 19:34:23 +0000 (21:34 +0200)
Variable is only used here: https://github.com/mono/mono/blob/mono/mono@82a993124888d470d1057eae9546e5be76524dad/mono/mini/mini-trampolines.c#L743

Commit migrated from https://github.com/mono/mono/commit/76c45bc2cbbcbc3a6beafaeb477c7c42c1069af9

src/mono/mono/mini/mini-trampolines.c

index 1007903..041c371 100644 (file)
@@ -431,7 +431,9 @@ common_call_trampoline (host_mgreg_t *regs, guint8 *code, MonoMethod *m, MonoVTa
        gpointer *orig_vtable_slot, *vtable_slot_to_patch = NULL;
        MonoJitInfo *ji = NULL;
        MonoDomain *domain = mono_domain_get ();
+#if LLVM_API_VERSION > 100
        MonoMethod *orig_method = m;
+#endif
 
        error_init (error);