2010-05-30 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / regalloc2.c
index c0308e8c30303b8bf3285230d6c3bd6c9e7cbbab..9c5d4033f1636bad1ec087e073ec5f1ed74d3439 100644 (file)
@@ -1197,7 +1197,7 @@ linear_scan (MonoCompile *cfg, MonoRegallocContext *ctx)
 
        LSCAN_DEBUG (printf ("\nLINEAR SCAN 2 for %s:\n", mono_method_full_name (cfg->method, TRUE)));
 
-       header = mono_method_get_header (cfg->method);
+       header = cfg->header;
 
        sig = mono_method_signature (cfg->method);