Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
87abe2a3
Commit
87abe2a3
authored
Jul 18, 2017
by
4ast
Committed by
GitHub
Jul 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1259 from iovisor/yhs_dev
Fix a clang memory leak
parents
f4727f43
6ed2229d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/cc/frontends/clang/loader.cc
src/cc/frontends/clang/loader.cc
+1
-0
No files found.
src/cc/frontends/clang/loader.cc
View file @
87abe2a3
...
...
@@ -296,6 +296,7 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, const st
invocation2
.
getFrontendOpts
().
Inputs
.
push_back
(
FrontendInputFile
(
main_path
,
FrontendOptions
::
getInputKindForExtension
(
"c"
)));
invocation2
.
getFrontendOpts
().
DisableFree
=
false
;
invocation2
.
getCodeGenOpts
().
DisableFree
=
false
;
// Resort to normal inlining. In -O0 the default is OnlyAlwaysInlining and
// clang might add noinline attribute even for functions with inline hint.
invocation2
.
getCodeGenOpts
().
setInlining
(
CodeGenOptions
::
NormalInlining
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment