Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
29e0000b
Commit
29e0000b
authored
Mar 04, 2019
by
Andrew Tulloch
Committed by
Tianqi Chen
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation on XCode 10 (#2731)
parent
eae76b3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/api/api_arith.cc
+4
-1
No files found.
src/api/api_arith.cc
View file @
29e0000b
...
@@ -109,7 +109,10 @@ TVM_REGISTER_API("arith._CreateAnalyzer")
...
@@ -109,7 +109,10 @@ TVM_REGISTER_API("arith._CreateAnalyzer")
});
});
}
else
if
(
name
==
"enter_constraint_context"
)
{
}
else
if
(
name
==
"enter_constraint_context"
)
{
return
PackedFunc
([
self
](
TVMArgs
args
,
TVMRetValue
*
ret
)
{
return
PackedFunc
([
self
](
TVMArgs
args
,
TVMRetValue
*
ret
)
{
auto
ctx
=
std
::
make_shared
<
ConstraintContext
>
(
self
.
get
(),
args
[
0
]);
// can't use make_shared due to noexcept(false) decl in destructor,
// see https://stackoverflow.com/a/43907314
auto
ctx
=
std
::
shared_ptr
<
ConstraintContext
>
(
new
ConstraintContext
(
self
.
get
(),
args
[
0
]));
auto
fexit
=
[
ctx
](
TVMArgs
,
TVMRetValue
*
)
mutable
{
auto
fexit
=
[
ctx
](
TVMArgs
,
TVMRetValue
*
)
mutable
{
ctx
.
reset
();
ctx
.
reset
();
};
};
...
...
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