Mesa (master): llvmpipe: avoid generating empty-body blocks
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 24 13:56:49 UTC 2019
Module: Mesa
Branch: master
Commit: 1177151b6d9312d6c72147f84261c3694aebdfaf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1177151b6d9312d6c72147f84261c3694aebdfaf
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Wed Sep 25 08:49:05 2019 +0100
llvmpipe: avoid generating empty-body blocks
Suggested-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
---
src/gallium/drivers/llvmpipe/lp_perf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the mesa-commit
mailing list