mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
Replace all uses of assert() with TINT_ICE macros
Use TINT_ICE() where we have diagnostics, TINT_ASSERT() where we do not. Change-Id: Ic6e842a7afdd957654c3461e5d03ecec7332e6f9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46444 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
dba65b7a34
commit
90f43cf87f
@@ -15,10 +15,9 @@
|
||||
#ifndef SRC_SEMANTIC_INFO_H_
|
||||
#define SRC_SEMANTIC_INFO_H_
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "src/debug.h"
|
||||
#include "src/semantic/node.h"
|
||||
#include "src/semantic/type_mappings.h"
|
||||
|
||||
@@ -63,7 +62,7 @@ class Info {
|
||||
void Add(const AST_OR_TYPE* node,
|
||||
const SemanticNodeTypeFor<AST_OR_TYPE>* sem_node) {
|
||||
// Check there's no semantic info already existing for the node
|
||||
assert(Get(node) == nullptr);
|
||||
TINT_ASSERT(Get(node) == nullptr);
|
||||
map.emplace(node, sem_node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user