Skip to content

Commit

Permalink
fixed #28
Browse files Browse the repository at this point in the history
  • Loading branch information
KomiMoe committed Jul 20, 2024
1 parent d43df65 commit e1e78c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions llvm/lib/Transforms/Obfuscation/StringEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ bool StringEncryption::processConstantStringUse(Function *F) {
if (Inst.isEHPad()) {
continue;
}
if (isa<LandingPadInst>(Inst) || isa<CleanupPadInst>(Inst) ||
isa<CatchPadInst>(Inst) || isa<CatchReturnInst>(Inst) ||
isa<CatchSwitchInst>(Inst) || isa<ResumeInst>(Inst) ||
isa<CallInst>(Inst)) {
continue;
}
if (PHINode *PHI = dyn_cast<PHINode>(&Inst)) {
for (unsigned int i = 0; i < PHI->getNumIncomingValues(); ++i) {
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(PHI->getIncomingValue(i))) {
Expand Down

0 comments on commit e1e78c4

Please sign in to comment.