Introduce support for unlimited trampolines.
[mono.git] / mono / mini / local-propagation.c
index ebf5f86fc69ce2bfa3b5b1221a432dacfc393de9..cdcaa97abfb8eeea9a3202456d2ed4a125c53042 100644 (file)
@@ -9,6 +9,7 @@
  *   Massimiliano Mantione (massi@ximian.com)
  *
  * (C) 2006 Novell, Inc.  http://www.novell.com
+ * Copyright 2011 Xamarin, Inc (http://www.xamarin.com)
  */
 
 
@@ -130,6 +131,9 @@ restart:
                        num_sregs = mono_inst_get_src_registers (ins, sregs);
                        for (srcindex = 0; srcindex < num_sregs; ++srcindex) {
                                MonoInst *def;
+                               int nregs;
+
+                               nregs = mono_inst_get_src_registers (ins, sregs);
 
                                regtype = spec [MONO_INST_SRC1 + srcindex];
                                sreg = sregs [srcindex];