projects
/
repair.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee09f9
)
Record that we allocated a new object.
author
bdemsky
<bdemsky>
Mon, 16 Aug 2004 17:23:57 +0000
(17:23 +0000)
committer
bdemsky
<bdemsky>
Mon, 16 Aug 2004 17:23:57 +0000
(17:23 +0000)
Repair/RepairCompiler/MCC/IR/Sources.java
patch
|
blob
|
history
diff --git
a/Repair/RepairCompiler/MCC/IR/Sources.java
b/Repair/RepairCompiler/MCC/IR/Sources.java
index fd8205fbcc81f5c06fa697e257000194aec304f1..da41331993a17e23987906569d991798bde6b30b 100755
(executable)
--- 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) {