debug: Include system in assert string

Change-Id: Id709cef0bfdb7cc1f849a5fb43e9d4f43c28272b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57706
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2021-07-14 18:42:02 +00:00 committed by Tint LUCI CQ
parent d35975adf6
commit 8a8ddcfbed
1 changed files with 7 additions and 6 deletions

View File

@ -115,7 +115,8 @@ class InternalCompilerError {
do { \ do { \
if (!(condition)) { \ if (!(condition)) { \
tint::diag::List diagnostics; \ tint::diag::List diagnostics; \
TINT_ICE(system, diagnostics) << "TINT_ASSERT(" << #condition << ")"; \ TINT_ICE(system, diagnostics) \
<< "TINT_ASSERT(" #system ", " #condition ")"; \
} \ } \
} while (false) } while (false)