mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Make ast::StructMember accept typ::Type
A minimal change to get a feel for what updating AST types to accept typ::Type (for now) looks like. Bug: tint:724 Change-Id: I33b33eb6af90e3629f76716a421f952f5a4bc11d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48841 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
05abdf5096
commit
0b9ea91fcf
@@ -190,7 +190,7 @@ TEST_F(ParserImplTest, GlobalDecl_Struct_WithStride) {
|
||||
EXPECT_EQ(str->impl()->members().size(), 1u);
|
||||
EXPECT_FALSE(str->IsBlockDecorated());
|
||||
|
||||
const auto* ty = str->impl()->members()[0]->type();
|
||||
const auto ty = str->impl()->members()[0]->type();
|
||||
ASSERT_TRUE(ty->Is<sem::ArrayType>());
|
||||
const auto* arr = ty->As<sem::ArrayType>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user