Skip to content
Snippets Groups Projects
Commit c8a4c050 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts: Fix TSAN_ENABLED CPP guard

This should be `#if defined(TSAN_ENABLED)`, not `#if TSAN_ENABLED`,
lest we suffer warnings.
parent efab3649
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@
#define ACQUIRE_FENCE prim %fence_acquire();
#define SEQ_CST_FENCE prim %fence_seq_cst();
#if TSAN_ENABLED
#if defined(TSAN_ENABLED)
// This is may be efficient than a fence but TSAN can reason about it.
#if WORD_SIZE_IN_BITS == 64
#define ACQUIRE_FENCE_ON(x) if (1) { W_ tmp; (tmp) = prim %load_acquire64(x); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment