Skip to content

Commit 352ec72

Browse files
svorenovaantlechner
svorenova
authored andcommitted
Flag the method symbol if it has variadic arguments
1 parent 4c744dc commit 352ec72

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ void java_bytecode_convert_method_lazy(
373373
if(m.is_static)
374374
member_type.set(ID_is_static, true);
375375
member_type.set_native(m.is_native);
376+
member_type.set_is_varargs(m.is_varargs);
376377

377378
if(m.is_bridge)
378379
member_type.set(ID_is_bridge_method, m.is_bridge);

jbmc/src/java_bytecode/java_types.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,16 @@ class java_method_typet : public code_typet
298298
{
299299
set(ID_is_native_method, is_native);
300300
}
301+
302+
bool get_is_varargs() const
303+
{
304+
return get_bool(ID_is_varargs_method);
305+
}
306+
307+
void set_is_varargs(bool is_varargs)
308+
{
309+
set(ID_is_varargs_method, is_varargs);
310+
}
301311
};
302312

303313
template <>

src/util/irep_ids.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ IREP_ID_ONE(is_inline)
387387
IREP_ID_ONE(is_extern)
388388
IREP_ID_ONE(is_synchronized)
389389
IREP_ID_ONE(is_native_method)
390+
IREP_ID_ONE(is_varargs_method)
390391
IREP_ID_ONE(is_global)
391392
IREP_ID_ONE(is_thread_local)
392393
IREP_ID_ONE(is_parameter)

0 commit comments

Comments
 (0)