projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab2c711
)
bug...wonder how this used to work??
author
bdemsky
<bdemsky>
Fri, 15 Apr 2011 22:38:58 +0000
(22:38 +0000)
committer
bdemsky
<bdemsky>
Fri, 15 Apr 2011 22:38:58 +0000
(22:38 +0000)
Robust/src/IR/TypeDescriptor.java
patch
|
blob
|
history
diff --git
a/Robust/src/IR/TypeDescriptor.java
b/Robust/src/IR/TypeDescriptor.java
index 1763617954e7c0ae5c095842e92e5aaa06127e5d..edf282446e53c29a02bc663c4aec5bcdee61b1cc 100644
(file)
--- a/
Robust/src/IR/TypeDescriptor.java
+++ b/
Robust/src/IR/TypeDescriptor.java
@@
-186,7
+186,7
@@
public class TypeDescriptor extends Descriptor {
//Can't safely use [ in C
if (isArray())
return "_AR_"+this.dereference().getSafeDescriptor();
- else if (isClass())
+ else if (isClass()
||isEnum()
)
return class_desc.getSafeDescriptor();
else if (isByte())
return "B";
@@
-206,7
+206,7
@@
public class TypeDescriptor extends Descriptor {
return "F";
else if (isTag())
return "T";
- else throw new Error();
+ else throw new Error(
toString()
);
}
public boolean isNumber() {