Skip to content

Commit 06a70dd

Browse files
committed
---
yaml --- r: 4548 b: refs/heads/master c: 1e6074c h: refs/heads/master v: v3
1 parent c0a217c commit 06a70dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 43c9fe65bdfd9edf3de5386596837502ff88ea0d
2+
refs/heads/master: 1e6074ca7315f0a29c1b3a8a5d2fc5e15d9de639

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ fn decl_cdecl_fn(llmod: ModuleRef, name: &str, llty: TypeRef) -> ValueRef {
342342
}
343343

344344
fn decl_fastcall_fn(llmod: ModuleRef, name: &str, llty: TypeRef) -> ValueRef {
345-
ret decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
345+
let llfn = decl_fn(llmod, name, lib::llvm::LLVMFastCallConv, llty);
346+
llvm::LLVMSetGC(llfn, str::buf("rust"));
347+
ret llfn;
346348
}
347349

348350

0 commit comments

Comments
 (0)