Skip to content

Commit a92109d

Browse files
committed
get_string_literal: deal with constants
1 parent 791dcd2 commit a92109d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shady/node.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ const char* get_string_literal(IrArena* arena, const Node* node) {
208208
return get_string_literal(arena, init);
209209
break;
210210
}
211+
case Declaration_Constant_TAG: {
212+
return get_string_literal(arena, decl->payload.constant.instruction);
213+
}
211214
default:
212215
break;
213216
}

0 commit comments

Comments
 (0)