mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
Fix a memory leak in llc.
llvm-svn: 49793
This commit is contained in:
parent
32b4942a0a
commit
a7040d914f
@ -246,7 +246,8 @@ int main(int argc, char **argv) {
|
||||
PM.run(mod);
|
||||
} else {
|
||||
// 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()));
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user