mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fixed double free in Kaleidoscope. Fixes PR4762.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb1308b74a
commit
9e6f3f2f14
@ -1107,12 +1107,13 @@ int main() {
|
||||
|
||||
// Make the module, which holds all the code.
|
||||
TheModule = new Module("my cool jit", Context);
|
||||
|
||||
// Create the JIT.
|
||||
TheExecutionEngine = EngineBuilder(TheModule).create();
|
||||
|
||||
{
|
||||
ExistingModuleProvider OurModuleProvider(TheModule);
|
||||
|
||||
// Create the JIT.
|
||||
TheExecutionEngine = EngineBuilder(&OurModuleProvider).create();
|
||||
|
||||
FunctionPassManager OurFPM(&OurModuleProvider);
|
||||
|
||||
// Set up the optimizer pipeline. Start with registering info about how the
|
||||
|
Loading…
Reference in New Issue
Block a user