Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Apr 24, 2024
1 parent 9ee2941 commit e00300e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libclambcc/ClamBCRebuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,12 @@ class ClamBCRebuild : public PassInfoMixin<ClamBCRebuild>, public InstVisitor<Cl
if (Ty->isIntegerTy()) {
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);
Expand Down

0 comments on commit e00300e

Please sign in to comment.