Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed May 3, 2024
1 parent 59f183b commit ac7d604
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions libclambcc/ClamBCRemovePointerPHIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ class ClamBCRemovePointerPHIs : public PassInfoMixin<ClamBCRemovePointerPHIs>
return false;
}


DEBUG_VALUE(pn);

IntegerType *pType = Type::getInt64Ty(pMod->getContext());
Constant *zero = ConstantInt::get(pType, 0);
Value *initValue = zero;
Expand Down Expand Up @@ -240,15 +237,6 @@ class ClamBCRemovePointerPHIs : public PassInfoMixin<ClamBCRemovePointerPHIs>
}
Type *elementType = pt->getPointerElementType();

DEBUG_VALUE(pn);
DEBUG_VALUE(pBasePtr);
DEBUG_VALUE(pn->getType());
DEBUG_VALUE(pBasePtr->getType());
DEBUG_NONPOINTER((pBasePtr->getType() == pn->getType()));

DEBUG_VALUE(pBasePtr);
DEBUG_VALUE(elementType);

Instruction *gepiNew = GetElementPtrInst::Create(elementType, pBasePtr, idxNode, "ClamBCRemovePointerPHIs_gepi_", insPt);
if (pn->getType() != gepiNew->getType()) {
gepiNew = CastInst::CreatePointerCast(gepiNew, pn->getType(), "ClamBCRemovePointerPHIs_cast_", insPt);
Expand Down

0 comments on commit ac7d604

Please sign in to comment.