mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fixed double free in Kaleidoscope. Fixes PR4762.
llvm-svn: 79896
This commit is contained in:
parent
4fdc1f8e2d
commit
1b88225ad6
@ -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…
x
Reference in New Issue
Block a user