aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Designator.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 15:06:44 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 15:06:44 +0000
commitdc33cd2faf6fa52486c02e86038c8f8c07c0fe27 (patch)
treed474619d75743399e7a324c8ae5ba04056333e0b /lib/CodeGen/Designator.cc
parenta29cb23c5517fd4f8f5524fdf38b67ff5fe4a902 (diff)
feat(codegen): declare and call EXTERN C functions
Variadic arguments must be C values and receive C default argument promotions; narrow integer parameters carry sign/zero extension. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/CodeGen/Designator.cc')
-rw-r--r--lib/CodeGen/Designator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Designator.cc b/lib/CodeGen/Designator.cc
index 467f788..5fb0ed3 100644
--- a/lib/CodeGen/Designator.cc
+++ b/lib/CodeGen/Designator.cc
@@ -116,7 +116,7 @@ Value *CodeGen::emitMethodCall(const std::string &Class, Value *Receiver,
}
std::vector<Value*> Args = {Receiver};
if (!marshalCallArgs(*Sig, ArgExprs, Line, Args)) return nullptr;
- return FuncGen->emitCall(Sig->LinkName, Args);
+ return FuncGen->emitCall(*Sig, Args);
}
// Resolves a designator (or legacy variable/array-access node) to the address