From a0e42904b64dd901d550d6f583b2d555d39d14b9 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Thu, 24 Aug 2023 12:10:33 -0700 Subject: [PATCH] Fix one more. --- src/tcompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcompiler.cpp b/src/tcompiler.cpp index a7d84d4e..9eafe700 100644 --- a/src/tcompiler.cpp +++ b/src/tcompiler.cpp @@ -2689,7 +2689,7 @@ struct FunctionEmitter { // structvariable and perform any casts necessary B->CreateStore(in, oe); } - return B->CreateLoad(output->getType()->getPointerElementType(), output); + return B->CreateLoad(toT->type, output); } break; case T_cast: { Obj a;