From 7abcac461e180f6c9c3901425909f0c612b1f59a Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 14 Jul 2009 00:13:25 +0000 Subject: [PATCH] change to fix bug --- Robust/src/IR/Flat/BuildCode.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 8b0b8f67..08828226 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -1214,7 +1214,14 @@ public class BuildCode { Iterator fieldit=cn.getFields(); while(fieldit.hasNext()) { FieldDescriptor fd=(FieldDescriptor)fieldit.next(); - if ((sp==null||!sp.getFieldTable().contains(fd.getSymbol()))&& + if ((sp==null||!sp.getFieldTable().contains(fd.getSymbol()))&&!fd.getType().isPtr()&& + (!fd.getSymbol().equals("cachedCode")||state.TASK)) + fields.add(fd); + } + fieldit=cn.getFields(); + while(fieldit.hasNext()) { + FieldDescriptor fd=(FieldDescriptor)fieldit.next(); + if ((sp==null||!sp.getFieldTable().contains(fd.getSymbol()))&&fd.getType().isPtr()&& (!fd.getSymbol().equals("cachedCode")||state.TASK)) fields.add(fd); } -- 2.34.1