From e00300e70bd96a357509a6d01495a9b0c52c1f02 Mon Sep 17 00:00:00 2001 From: Andy Ragusa Date: Wed, 24 Apr 2024 12:45:46 -0700 Subject: [PATCH] blah --- libclambcc/ClamBCRebuild.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libclambcc/ClamBCRebuild.cpp b/libclambcc/ClamBCRebuild.cpp index 2980909861..4df0d3e683 100644 --- a/libclambcc/ClamBCRebuild.cpp +++ b/libclambcc/ClamBCRebuild.cpp @@ -539,6 +539,12 @@ class ClamBCRebuild : public PassInfoMixin, public InstVisitorisIntegerTy()) { V = Builder->CreateBitCast(V, Ty, "ClamBCRebuild_cast"); } else if (Ty->isPointerTy()) { // A CompositeType + + /*This appears to be necessary for 0.103 on windows.*/ + if (Ty != i8pTy){ + V = Builder->CreatePointerCast(V, i8pTy, "ClamBCRebuild"); + } + V = Builder->CreatePointerCast(V, Ty, "ClamBCRebuild"); } else { stop("Type conversion unhandled in ClamAV Bytecode Backend Rebuilder", &I);