diff options
author | Eric Engestrom <[email protected]> | 2019-09-25 08:49:05 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-10-24 14:54:09 +0100 |
commit | 1177151b6d9312d6c72147f84261c3694aebdfaf (patch) | |
tree | 293ad1ace357b4b0122987b1e749890d6473e8c3 /src/gallium | |
parent | abe32f56f576b06e200fffdb923da9c23a2c239b (diff) |
llvmpipe: avoid generating empty-body blocks
Suggested-by: Erik Faye-Lund <[email protected]>
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_perf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_perf.h b/src/gallium/drivers/llvmpipe/lp_perf.h index 455adf7d6f8..ace85c7fef4 100644 --- a/src/gallium/drivers/llvmpipe/lp_perf.h +++ b/src/gallium/drivers/llvmpipe/lp_perf.h @@ -74,7 +74,7 @@ extern struct lp_counters lp_count; #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) #define LP_COUNT_GET(counter) (lp_count.counter) #else -#define LP_COUNT(counter) +#define LP_COUNT(counter) do {} while (0) #define LP_COUNT_ADD(counter, incr) (void)(incr) #define LP_COUNT_GET(counter) 0 #endif |