gallivm: initialize init_native_targets_once_flag correctly
authorFrederic Devernay <frederic.devernay@m4x.org>
Mon, 30 May 2016 14:09:21 +0000 (16:09 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 30 May 2016 14:13:52 +0000 (16:13 +0200)
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index 42a53ecb092de6ed81a6a2fbbd847f1f16be4b11..805a50be09964e9cd65b794e86651d5364389f47 100644 (file)
@@ -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()
 {