diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-12 21:21:18 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-12 21:21:18 +0100 |
| commit | ccda456c0a96f849e408bd707eca0a3baf9202b1 (patch) | |
| tree | 57abf5f3bbb1e103165bbb90d78f6a14d3a9e27f /src/ssa.cpp | |
| parent | 83bad13e9e1bebd474768edf1a30e0682013149b (diff) | |
`foreign` blocks for procedures
Diffstat (limited to 'src/ssa.cpp')
| -rw-r--r-- | src/ssa.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ssa.cpp b/src/ssa.cpp index 5eef0602d..06da0afa1 100644 --- a/src/ssa.cpp +++ b/src/ssa.cpp @@ -2504,9 +2504,7 @@ bool ssa_generate(Parser *parser, CheckerInfo *info) { if (e->Procedure.is_foreign) { name = e->token.string; // NOTE(bill): Don't use the mangled name } - if (pd->foreign_name.len > 0) { - name = pd->foreign_name; - } else if (pd->link_name.len > 0) { + if (pd->link_name.len > 0) { name = pd->link_name; } |