diff --git a/compiler/luci/pass/include/luci/ModulePass.h b/compiler/luci/pass/include/luci/ModulePass.h index 1835f6e0c4b..7afdc002fef 100644 --- a/compiler/luci/pass/include/luci/ModulePass.h +++ b/compiler/luci/pass/include/luci/ModulePass.h @@ -28,6 +28,8 @@ namespace luci class Pass : public logo::Pass { public: + // This directive prevents emitting a compiler erro triggered by -Werror=overloaded-virtual + using logo::Pass::run; // Run module pass and return false if there was nothing changed virtual bool run(luci::Module *) = 0; };