comparison src/pt-jit.h @ 14926:aebd296a15c4

Prevent double release of input arguments in JIT
author Max Brister <max@2bass.com>
date Tue, 29 May 2012 13:51:02 -0500
parents 8697e3e9d77a
children 39d52aa37a08
comparison
equal deleted inserted replaced
14925:8697e3e9d77a 14926:aebd296a15c4
1524 return ret; 1524 return ret;
1525 } 1525 }
1526 1526
1527 void track_value (jit_value *value) 1527 void track_value (jit_value *value)
1528 { 1528 {
1529 if (value->type ()) 1529 if (value->type () && ! dynamic_cast<jit_instruction *>(value))
1530 constants.push_back (value); 1530 constants.push_back (value);
1531 all_values.push_back (value); 1531 all_values.push_back (value);
1532 } 1532 }
1533 1533
1534 // place phi nodes in the current block to merge ref with variables 1534 // place phi nodes in the current block to merge ref with variables