Skip to content

Commit 2f7f695

Browse files
thk123svorenova
thk123
authored and
svorenova
committed
Adding some useful debug info
1 parent 79f743b commit 2f7f695

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/java_bytecode/java_types.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ reference_typet java_array_type(const char subtype)
9797
case 'j': subtype_str="long"; break;
9898
case 'l': subtype_str="long"; break;
9999
case 'a': subtype_str="reference"; break;
100-
default: UNREACHABLE;
100+
default:
101+
#ifdef DEBUG
102+
std::cout << "Unrecognised subtype str: " << subtype << std::endl;
103+
#endif
104+
UNREACHABLE;
101105
}
102106

103107
irep_idt class_name="array["+subtype_str+"]";

0 commit comments

Comments
 (0)