Skip to content

Commit 81025be

Browse files
committed
---
yaml --- r: 2539 b: refs/heads/master c: 371dbf9 h: refs/heads/master i: 2537: 58d863b 2535: 9d0e644 v: v3
1 parent e02b3d8 commit 81025be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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: cad8c734bd678b6cd0bd0cb41f636624c4926646
2+
refs/heads/master: 371dbf9834b04aec0041d1b397eeb320220d652a

trunk/src/comp/back/link.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ fn link_intrinsics(session::session sess, ModuleRef llmod) {
4444
fail;
4545
}
4646

47-
if (llvm::LLVMLinkModules(llmod, llintrinsicsmod) == False) {
47+
auto linkres = llvm::LLVMLinkModules(llmod, llintrinsicsmod);
48+
llvm::LLVMDisposeModule(llintrinsicsmod);
49+
50+
if (linkres == False) {
4851
llvm_err(sess, "couldn't link the module with the intrinsics");
4952
fail;
5053
}

0 commit comments

Comments
 (0)