mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Program: Remove deprecated types and nodes methods
Fixup all usages Bug: tint:390 Change-Id: I14c9a0420be7da2d26bf21bce96ca0ded0978711 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38548 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -64,18 +64,18 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
|
||||
// Check that none of the AST nodes or type pointers in dst are found in src
|
||||
std::unordered_set<tint::ast::Node*> src_nodes;
|
||||
for (auto* src_node : src.nodes()) {
|
||||
for (auto* src_node : src.Nodes().Objects()) {
|
||||
src_nodes.emplace(src_node);
|
||||
}
|
||||
std::unordered_set<tint::type::Type*> src_types;
|
||||
for (auto& src_type : src.types()) {
|
||||
src_types.emplace(src_type.second);
|
||||
for (auto* src_type : src.Types()) {
|
||||
src_types.emplace(src_type);
|
||||
}
|
||||
for (auto* dst_node : dst.nodes()) {
|
||||
for (auto* dst_node : dst.Nodes().Objects()) {
|
||||
ASSERT_EQ(src_nodes.count(dst_node), 0u);
|
||||
}
|
||||
for (auto& dst_type : dst.types()) {
|
||||
ASSERT_EQ(src_types.count(dst_type.second), 0u);
|
||||
for (auto* dst_type : dst.Types()) {
|
||||
ASSERT_EQ(src_types.count(dst_type), 0u);
|
||||
}
|
||||
|
||||
// Regenerate the wgsl for the src program. We use this instead of the
|
||||
|
||||
Reference in New Issue
Block a user