summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Devernay <frederic.devernay@m4x.org>2016-05-30 16:09:21 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-05-30 16:13:52 +0200
commitcee459d84de7533d0e0a74a37f7fc4c0f2b77bcf (patch)
tree50f978d0b67d1a3139d5eec586b7c5b863cf1c57
parent8cc80e396e0f604bdeb962fe35c32ca1e6b361f3 (diff)
gallivm: initialize init_native_targets_once_flag correctly
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 42a53ecb09..805a50be09 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -115,7 +115,7 @@ static LLVMEnsureMultithreaded lLVMEnsureMultithreaded;
}
-static once_flag init_native_targets_once_flag;
+static once_flag init_native_targets_once_flag = ONCE_FLAG_INIT;
static void init_native_targets()
{