Skip to content

Commit

Permalink
Skip Ptr types
Browse files Browse the repository at this point in the history
  • Loading branch information
adam weishaupt committed Oct 15, 2024
1 parent 84aefc9 commit b23983d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LLVMParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,12 @@ bool LLVMParser::findReplacements(llvm::DominatorTree *DT,
continue;
}

// Skip Ptr types
if (Cand.AST.front().I->getType()->isPointerTy()) {
Cand.isValid = false;
continue;
}

// Check if we already replaced this instruction
if (constainsReplacedInstructions(ReplacedInstructions, Cand)) {
#ifdef DEBUG_SIMPLIFICATION
Expand Down

0 comments on commit b23983d

Please sign in to comment.