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
5d71e881
Commit
5d71e881
authored
Jan 07, 2019
by
Li-Wen Chang
Committed by
Tianqi Chen
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test-test-set (#2384)
parent
083e0f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/codegen/llvm/llvm_common.cc
+2
-2
No files found.
src/codegen/llvm/llvm_common.cc
View file @
5d71e881
...
...
@@ -13,7 +13,7 @@ namespace codegen {
struct
LLVMEnv
{
std
::
mutex
mu
;
bool
all_initialized
{
false
};
volatile
bool
all_initialized
{
false
};
static
LLVMEnv
*
Global
()
{
static
LLVMEnv
inst
;
...
...
@@ -26,12 +26,12 @@ void InitializeLLVM() {
if
(
!
e
->
all_initialized
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
e
->
mu
);
if
(
!
e
->
all_initialized
)
{
e
->
all_initialized
=
true
;
llvm
::
InitializeAllTargetInfos
();
llvm
::
InitializeAllTargets
();
llvm
::
InitializeAllTargetMCs
();
llvm
::
InitializeAllAsmParsers
();
llvm
::
InitializeAllAsmPrinters
();
e
->
all_initialized
=
true
;
}
}
}
...
...
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