diff --git a/src/ast/builder.cc b/src/ast/builder.cc index 957ce17c9b..fce7b913ba 100644 --- a/src/ast/builder.cc +++ b/src/ast/builder.cc @@ -26,7 +26,7 @@ Builder::~Builder() = default; std::unique_ptr Builder::make_var(const std::string& name, ast::StorageClass storage, ast::type::Type* type) { - auto var = std::make_unique(name, storage, type); + auto var = create(name, storage, type); return var; } diff --git a/src/writer/spirv/builder_if_test.cc b/src/writer/spirv/builder_if_test.cc index e86a6ac4fd..0842d76e2c 100644 --- a/src/writer/spirv/builder_if_test.cc +++ b/src/writer/spirv/builder_if_test.cc @@ -618,12 +618,12 @@ TEST_F(BuilderTest, If_WithLoad_Bug327) { // } ast::type::BoolType bool_type; - auto var = std::make_unique("a", ast::StorageClass::kFunction, - &bool_type); + auto var = + create("a", ast::StorageClass::kFunction, &bool_type); td.RegisterVariableForTesting(var.get()); - ast::IfStatement expr(std::make_unique("a"), - std::make_unique()); + ast::IfStatement expr(create("a"), + create()); ASSERT_TRUE(td.DetermineResultType(&expr)) << td.error();