Dispose the module.
Thanks to brson for noticing it.
This commit is contained in:
@@ -70,5 +70,6 @@ extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR, LLVMModuleRef M,
|
||||
|
||||
bool foo = Target.addPassesToEmitFile(*PM, FOS, FileType2, OLvl, NoVerify);
|
||||
assert(!foo);
|
||||
(void)foo;
|
||||
PM->run(*unwrap(M));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user