Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 9115eaf

Browse files
author
Sven Verdoolaege
committed
CodeGen_TC::getValue: reuse toSInt
1 parent 68e1bc0 commit 9115eaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/polyhedral/codegen_llvm.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ llvm::Value* CodeGen_TC::getValue(isl::ast_expr expr) {
317317
return sym_get(expr.get_id().get_name());
318318
case isl_ast_expr_type::isl_ast_expr_int: {
319319
auto val = isl::manage(isl_ast_expr_get_val(expr.get()));
320-
CHECK(val.is_int());
321-
return getLLVMConstantSignedInt64(val.get_num_si());
320+
return getLLVMConstantSignedInt64(toSInt(val));
322321
}
323322
default:
324323
LOG(FATAL) << "NYI";

0 commit comments

Comments
 (0)