projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
917365b
)
Fix a memory leak in llc.
author
Dan Gohman
<gohman@apple.com>
Wed, 16 Apr 2008 15:56:26 +0000
(15:56 +0000)
committer
Dan Gohman
<gohman@apple.com>
Wed, 16 Apr 2008 15:56:26 +0000
(15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49793
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llc/llc.cpp
patch
|
blob
|
history
diff --git
a/tools/llc/llc.cpp
b/tools/llc/llc.cpp
index 929f70215b947c90c260e78e1f8a4bf7ebcd962b..729588d627c2e8d43928233e2697e28014997cef 100644
(file)
--- a/
tools/llc/llc.cpp
+++ b/
tools/llc/llc.cpp
@@
-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