fix gcc error: changes meaning of Transform

Change-Id: Ie40e175c414928414a8b791b9a78a2e634bbd339
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35822
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Sarah Mashayekhi <sarahmashay@google.com>
This commit is contained in:
Sarah Mashayekhi 2020-12-15 22:26:08 +00:00 committed by Commit Bot service account
parent d94cbf6023
commit 523b2193e3
1 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ namespace {
class EmitVertexPointSizeTest : public testing::Test {
public:
Transform::Output Transform(ast::Module in) {
Transform::Output GetTransform(ast::Module in) {
Manager manager;
manager.append(std::make_unique<EmitVertexPointSize>());
return manager.Run(&in);
@ -81,7 +81,7 @@ TEST_F(EmitVertexPointSizeTest, VertexStageBasic) {
}
};
auto result = Transform(Builder{}.Module());
auto result = GetTransform(Builder{}.Module());
ASSERT_FALSE(result.diagnostics.contains_errors())
<< diag::Formatter().format(result.diagnostics);
@ -149,7 +149,7 @@ TEST_F(EmitVertexPointSizeTest, VertexStageEmpty) {
}
};
auto result = Transform(Builder{}.Module());
auto result = GetTransform(Builder{}.Module());
ASSERT_FALSE(result.diagnostics.contains_errors())
<< diag::Formatter().format(result.diagnostics);
@ -208,7 +208,7 @@ TEST_F(EmitVertexPointSizeTest, NonVertexStage) {
}
};
auto result = Transform(Builder{}.Module());
auto result = GetTransform(Builder{}.Module());
ASSERT_FALSE(result.diagnostics.contains_errors())
<< diag::Formatter().format(result.diagnostics);