diff options
Diffstat (limited to 'ptx/src/translate.rs')
-rw-r--r-- | ptx/src/translate.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ptx/src/translate.rs b/ptx/src/translate.rs index 13c578b..2af7534 100644 --- a/ptx/src/translate.rs +++ b/ptx/src/translate.rs @@ -543,10 +543,10 @@ fn emit_directives<'input>( let f_body = match &f.body {
Some(f) => f,
None => {
- if f.linkage == ast::LinkingDirective::NONE {
- continue;
- } else {
+ if f.linkage.contains(ast::LinkingDirective::EXTERN) {
&empty_body
+ } else {
+ continue;
}
}
};
|