Skip to content

Commit 9d528d6

Browse files
committed
fix incorrect usage of LLVM-C
1 parent 76faaa7 commit 9d528d6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/frontends/llvm/l2s_value.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ const Node* convert_value(Parser* p, LLVMValueRef v) {
131131
return get_default_zero_value(a, convert_type(p, LLVMTypeOf(v)));
132132
case LLVMConstantArrayValueKind: {
133133
assert(t->tag == ArrType_TAG);
134-
assert(LLVMIsConstant(v));
135-
if (LLVMIsConstantString(v)) {
136-
size_t idc;
137-
r = string_lit_helper(a, LLVMGetAsString(v, &idc));
138-
break;
139-
}
140134
size_t arr_size = get_int_literal_value(*resolve_to_int_literal(t->payload.arr_type.size), false);
141135
assert(arr_size >= 0 && arr_size < INT32_MAX && "sanity check");
142136
LARRAY(const Node*, elements, arr_size);

0 commit comments

Comments
 (0)