Skip to content

Commit 8389b7d

Browse files
committed
WASM: Use ASR::arraystorageType in emit_array_item_address_onto_stack()
1 parent 49ba6bc commit 8389b7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libasr/codegen/asr_to_wasm.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,9 +1429,7 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
14291429
wasm::emit_i32_sub(m_code_section, m_al);
14301430
size_t jmin, jmax;
14311431

1432-
// TODO: add this flag to ASR for each array:
1433-
bool column_major = false;
1434-
if (column_major) {
1432+
if (x.m_storage_format == ASR::arraystorageType::ColMajor) {
14351433
// Column-major order
14361434
jmin = 0;
14371435
jmax = i;

0 commit comments

Comments
 (0)