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

Commit 9f47507

Browse files
author
Sven Verdoolaege
committed
LLVMCodegen: use isl::val::is_int instead of checking denominator
This clarifies the intent.
1 parent 2a76ece commit 9f47507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/polyhedral/codegen_llvm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ class LLVMCodegen {
646646
}
647647
case isl_ast_expr_type::isl_ast_expr_int: {
648648
auto val = isl::manage(isl_ast_expr_get_val(subscript.get()));
649-
CHECK_EQ(val.get_den_si(), 1);
649+
CHECK(val.is_int());
650650
subscriptValues.push_back(
651651
getLLVMConstantSignedInt64(val.get_num_si()));
652652
break;

0 commit comments

Comments
 (0)