@@ -1411,7 +1411,7 @@ template<> Type* GetTypeFor<double>(LLVMContext &context) { return Type::getDoub
1411
1411
1412
1412
void AddRefBoxed (Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
1413
1413
auto & context = ctx.Codegen .GetContext ();
1414
- const auto load = value->getType ()->isPointerTy () ? new LoadInst (value-> getType ( ), value, " load" , block) : value;
1414
+ const auto load = value->getType ()->isPointerTy () ? new LoadInst (Type::getInt128Ty (context ), value, " load" , block) : value;
1415
1415
const auto half = CastInst::Create (Instruction::Trunc, load, Type::getInt64Ty (context), " half" , block);
1416
1416
const auto counterType = Type::getInt32Ty (context);
1417
1417
const auto type = StructType::get (context, {PointerType::getUnqual (StructType::get (context)), counterType, Type::getInt16Ty (context)});
@@ -1443,7 +1443,7 @@ void AddRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
1443
1443
1444
1444
void UnRefBoxed (Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
1445
1445
auto & context = ctx.Codegen .GetContext ();
1446
- const auto load = value->getType ()->isPointerTy () ? new LoadInst (value-> getType ( ), value, " load" , block) : value;
1446
+ const auto load = value->getType ()->isPointerTy () ? new LoadInst (Type::getInt128Ty (context ), value, " load" , block) : value;
1447
1447
const auto half = CastInst::Create (Instruction::Trunc, load, Type::getInt64Ty (context), " half" , block);
1448
1448
const auto counterType = Type::getInt32Ty (context);
1449
1449
const auto type = StructType::get (context, {PointerType::getUnqual (StructType::get (context)), counterType, Type::getInt16Ty (context)});
@@ -1486,7 +1486,7 @@ void UnRefBoxed(Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
1486
1486
1487
1487
void CleanupBoxed (Value* value, const TCodegenContext& ctx, BasicBlock*& block) {
1488
1488
auto & context = ctx.Codegen .GetContext ();
1489
- const auto load = value->getType ()->isPointerTy () ? new LoadInst (value-> getType ( ), value, " load" , block) : value;
1489
+ const auto load = value->getType ()->isPointerTy () ? new LoadInst (Type::getInt128Ty (context ), value, " load" , block) : value;
1490
1490
const auto half = CastInst::Create (Instruction::Trunc, load, Type::getInt64Ty (context), " half" , block);
1491
1491
const auto counterType = Type::getInt32Ty (context);
1492
1492
const auto type = StructType::get (context, {PointerType::getUnqual (StructType::get (context)), counterType, Type::getInt16Ty (context)});
0 commit comments