Browse Source

llvmpipe: avoid generating empty-body blocks

Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
tags/19.3-branchpoint
Eric Engestrom 7 years ago
parent
commit
1177151b6d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/llvmpipe/lp_perf.h

+ 1
- 1
src/gallium/drivers/llvmpipe/lp_perf.h View File

@@ -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

Loading…
Cancel
Save