Skip to content

Commit 51af43f

Browse files
committed
rustc: Use "rust" GC in Rust functions
1 parent f17edf9 commit 51af43f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ fn decl_internal_fastcall_fn(llmod: ModuleRef, name: &str, llty: TypeRef) ->
354354
let llfn = decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
355355
llvm::LLVMSetLinkage(llfn,
356356
lib::llvm::LLVMInternalLinkage as llvm::Linkage);
357+
llvm::LLVMSetGC(llfn, str::buf("rust"));
357358
ret llfn;
358359
}
359360

0 commit comments

Comments
 (0)