mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-14 09:38:40 +00:00
Fix a memory leak in llc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
917365bef1
commit
33ef2bb268
@ -246,7 +246,8 @@ int main(int argc, char **argv) {
|
|||||||
PM.run(mod);
|
PM.run(mod);
|
||||||
} else {
|
} else {
|
||||||
// Build up all of the passes that we want to do to the module.
|
// Build up all of the passes that we want to do to the module.
|
||||||
FunctionPassManager Passes(new ExistingModuleProvider(M.get()));
|
ExistingModuleProvider Provider(M.release());
|
||||||
|
FunctionPassManager Passes(&Provider);
|
||||||
Passes.add(new TargetData(*Target.getTargetData()));
|
Passes.add(new TargetData(*Target.getTargetData()));
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user