From: bdemsky Date: Mon, 16 Aug 2004 17:23:57 +0000 (+0000) Subject: Record that we allocated a new object. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=commitdiff_plain;h=f30d6339fc9db88afcd53bac9671666b5f7a3516;ds=sidebyside Record that we allocated a new object. --- diff --git a/Repair/RepairCompiler/MCC/IR/Sources.java b/Repair/RepairCompiler/MCC/IR/Sources.java index fd8205f..da41331 100755 --- a/Repair/RepairCompiler/MCC/IR/Sources.java +++ b/Repair/RepairCompiler/MCC/IR/Sources.java @@ -45,7 +45,7 @@ public class Sources { e.generate(cr, size); cr.popSymbolTable(); cr.outputline(td.getGenerateType().getSafeSymbol()+" "+vd.getSafeSymbol()+"=("+td.getGenerateType().getSafeSymbol()+") calloc(1,"+size.getSafeSymbol()+");"); - + cr.outputline("alloc("+vd.getSafeSymbol()+","+size.getSafeSymbol()+");"); if (Compiler.ALLOCATECPLUSPLUS) { if (td instanceof StructureTypeDescriptor) { if (((StructureTypeDescriptor)td).size()>0) {