Skip to content

Commit 471f862

Browse files
luyahanV8 LUCI CQ
authored andcommitted
[riscv64] Link should greater and equal zero
Change-Id: Ieeb5888efc068707766aef6ba6fc842c5deaaf9c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3146673 Commit-Queue: Yahan Lu <yahan@iscas.ac.cn> Auto-Submit: Yahan Lu <yahan@iscas.ac.cn> Reviewed-by: Ji Qiu <qiuji@iscas.ac.cn> Cr-Commit-Position: refs/heads/main@{#76784}
1 parent c9afe63 commit 471f862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/riscv64/assembler-riscv64.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ void Assembler::next(Label* L, bool is_internal) {
703703
if (link == kEndOfChain) {
704704
L->Unuse();
705705
} else {
706-
DCHECK_GT(link, 0);
706+
DCHECK_GE(link, 0);
707707
DEBUG_PRINTF("next: %p to %p (%d)\n", L,
708708
reinterpret_cast<Instr*>(buffer_start_ + link), link);
709709
L->link_to(link);

0 commit comments

Comments
 (0)