diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 10:32:30 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 10:32:30 +0000 |
| commit | 377a1fd2eadd2a70cd27f13e2fee6e96c8706a51 (patch) | |
| tree | c05665f26b3434359cf4ae7720e8f9111a322522 /lib/CodeGen/Designator.cc | |
| parent | f5246db6d045ffb86d6717e1b1c37f03bcb2b75b (diff) | |
feat(codegen): overload global functions and procedures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/Designator.cc')
| -rw-r--r-- | lib/CodeGen/Designator.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/Designator.cc b/lib/CodeGen/Designator.cc index b31492b..540059d 100644 --- a/lib/CodeGen/Designator.cc +++ b/lib/CodeGen/Designator.cc @@ -97,8 +97,9 @@ Value *CodeGen::emitMethodCall(const std::string &Class, Value *Receiver, return nullptr; } std::vector<Value*> Args = {Receiver}; - if (!marshalCallArgs(Method->getLinkName(), ArgExprs, Line, Args)) return nullptr; - return FuncGen->emitCall(Method->getLinkName(), Args); + const FuncSig *Sig = resolveCall(Method->getLinkName(), ArgExprs); + if (!Sig || !marshalCallArgs(*Sig, ArgExprs, Line, Args)) return nullptr; + return FuncGen->emitCall(Sig->LinkName, Args); } // Resolves a designator (or legacy variable/array-access node) to the address |
