Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit af0fc0c

Browse files
committed
style(pass): remove unused assertion
1 parent a43f736 commit af0fc0c

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/pass/pass_call_hook.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ PassCallHook::PassCallHook(Module& target, Module& declaration)
2020

2121
bool PassCallHook::run_on_instruction(Instruction& inst) {
2222
assert_instruction_belong(inst, this->target());
23-
assert(inst.getModule()->getModuleIdentifier() ==
24-
this->target().getModuleIdentifier());
2523
bool modified = false;
2624
if (isa<CallInst>(&inst)) {
2725
modified |= this->run_on_call_inst(*cast<CallInst>(&inst));

src/pass/pass_call_hook.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ class PassCallHook : public PassBase {
1616
public:
1717
explicit PassCallHook(llvm::Module& target, llvm::Module& declaration);
1818

19-
public:
2019
virtual bool run_on_instruction(llvm::Instruction& inst) override;
2120
virtual bool run_on_call_inst(llvm::CallInst& inst);
2221

23-
public:
2422
template <class PassType = PassCallHook>
2523
static bool apply_pass(llvm::StringRef target_ll,
2624
llvm::StringRef declaration_ll) {

0 commit comments

Comments
 (0)