Skip to content

Commit d8749dc

Browse files
Fixing typo
1 parent d7efaf7 commit d8749dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

config/llvm_header.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ declare void @memcpy(ptr, ptr, i64)
8686
declare void @error_on_get(i64, i64)
8787
declare void @error_on_start_substr(i64, i64)
8888
declare void @error_on_end_substr(ptr, i64)
89-
declare void @interger_overflow(i64)
89+
declare void @integer_overflow(i64)
9090
declare void @buffer_overflow_replace_at(i64, i64, i64)
9191
declare void @buffer_overflow_update(i64, i64)
9292
declare void @error_on_update(i64)
@@ -380,7 +380,7 @@ pad:
380380
381381
error:
382382
%v_trunc = trunc i256 %v to i64
383-
call void @interger_overflow(i64 %v_trunc)
383+
call void @integer_overflow(i64 %v_trunc)
384384
unreachable
385385
386386
allocate:
@@ -422,7 +422,7 @@ pad:
422422
423423
error:
424424
%v_trunc = trunc i256 %v to i64
425-
call void @interger_overflow(i64 %v_trunc)
425+
call void @integer_overflow(i64 %v_trunc)
426426
unreachable
427427
428428
allocate:

runtime/strings/bytes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void error_on_end_substr(SortBytes b, uint64_t end) {
6363
end, len(b));
6464
}
6565

66-
void interger_overflow(uint64_t v) {
66+
void integer_overflow(uint64_t v) {
6767
KLLVM_HOOK_INVALID_ARGUMENT("Integer overflow on value: {}", v);
6868
}
6969

@@ -311,7 +311,7 @@ SortBytes hook_BYTES_padRight64(SortBytes b, uint64_t length, uint64_t v) {
311311
return b;
312312
}
313313
if (v > 255) {
314-
KLLVM_HOOK_INVALID_ARGUMENT("Integer overflow on value: {}", v);
314+
integer_overflow(v);
315315
}
316316
auto *result
317317
= static_cast<string *>(kore_alloc_token(sizeof(string) + length));
@@ -328,7 +328,7 @@ SortBytes hook_BYTES_padRight(SortBytes b, SortInt length, SortInt v) {
328328
}
329329
unsigned long uv = GET_UI(v);
330330
if (uv > 255) {
331-
KLLVM_HOOK_INVALID_ARGUMENT("Integer overflow on value: {}", uv);
331+
integer_overflow(uv);
332332
}
333333
auto *result = static_cast<string *>(kore_alloc_token(sizeof(string) + ulen));
334334
init_with_len(result, ulen);
@@ -343,7 +343,7 @@ SortBytes hook_BYTES_padLeft64(SortBytes b, uint64_t length, uint64_t v) {
343343
return b;
344344
}
345345
if (v > 255) {
346-
KLLVM_HOOK_INVALID_ARGUMENT("Integer overflow on value: {}", v);
346+
integer_overflow(v);
347347
}
348348
auto *result = static_cast<string *>(kore_alloc_token(sizeof(string) + ulen));
349349
init_with_len(result, ulen);
@@ -359,7 +359,7 @@ SortBytes hook_BYTES_padLeft(SortBytes b, SortInt length, SortInt v) {
359359
}
360360
unsigned long uv = GET_UI(v);
361361
if (uv > 255) {
362-
KLLVM_HOOK_INVALID_ARGUMENT("Integer overflow on value: {}", uv);
362+
integer_overflow(uv);
363363
}
364364
auto *result = static_cast<string *>(kore_alloc_token(sizeof(string) + ulen));
365365
init_with_len(result, ulen);

0 commit comments

Comments
 (0)