diff options
Diffstat (limited to 'lib/CodeGen/CodeGen.cc')
| -rw-r--r-- | lib/CodeGen/CodeGen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc index 9f59a4d..92a52e8 100644 --- a/lib/CodeGen/CodeGen.cc +++ b/lib/CodeGen/CodeGen.cc @@ -288,7 +288,7 @@ void CodeGen::compile(const std::vector<SourceUnit> &Sources) { if (auto *Class = dynamic_cast<ClassTypeDeclAST*>(Stmt.get())) { for (const auto &Method : Class->getMethods()) { SaveAndRestore<int> MethodLocation(DiagnosticLine, Method->getLine()); - if (findMethod(Class->getName(), Method->getProto()->getName()) == Method->getProto()) + if (isRegisteredMethod(Class->getName(), Method->getProto())) FuncGen->emitPrototype(Method->getProto()); } } |
