Skip to content

Commit c848360

Browse files
committed
Fix new type in list type update
1 parent f116437 commit c848360

File tree

1 file changed

+1
-1
lines changed
  • src/engine/internal/llvm/instructions

1 file changed

+1
-1
lines changed

src/engine/internal/llvm/instructions/lists.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ void Lists::createListTypeUpdate(const LLVMListPtr &listPtr, const LLVMRegister
373373
llvm::Value *newType;
374374

375375
if (newValue->isRawValue)
376-
newType = m_builder.getInt32(static_cast<uint32_t>(m_utils.mapType(newValue->type())));
376+
newType = m_builder.getInt32(static_cast<uint32_t>(m_utils.mapType(newValueType)));
377377
else {
378378
llvm::Value *typeField = m_builder.CreateStructGEP(m_utils.compilerCtx()->valueDataType(), newValue->value, 1);
379379
newType = m_builder.CreateLoad(m_builder.getInt32Ty(), typeField);

0 commit comments

Comments
 (0)