Skip to content

Commit a284af8

Browse files
author
Daniel Kroening
committed
fix for asm qualifier
1 parent ca682e0 commit a284af8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ansi-c/ansi_c_convert_type.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ void ansi_c_convert_typet::read_rec(const typet &type)
6464
c_qualifiers.is_ptr64=true;
6565
else if(type.id()==ID_volatile)
6666
c_qualifiers.is_volatile=true;
67-
else if(type.id()==ID_asm &&
68-
type.has_subtype() &&
69-
type.subtype().id()==ID_string_constant)
67+
else if(type.id()==ID_asm)
7068
{
71-
c_storage_spec.asm_label=type.subtype().get(ID_value);
69+
if(type.has_subtype() &&
70+
type.subtype().id()==ID_string_constant)
71+
c_storage_spec.asm_label=type.subtype().get(ID_value);
7272
}
7373
else if(type.id()==ID_section &&
7474
type.has_subtype() &&

0 commit comments

Comments
 (0)