Index: src/sksl/ir/SkSLConstructor.h |
diff --git a/src/sksl/ir/SkSLConstructor.h b/src/sksl/ir/SkSLConstructor.h |
index c58da7e5b884008e162cf2893646d36788b0e98f..0501b651ead89ae3b61fdf40d4483fa816247683 100644 |
--- a/src/sksl/ir/SkSLConstructor.h |
+++ b/src/sksl/ir/SkSLConstructor.h |
@@ -16,13 +16,13 @@ namespace SkSL { |
* Represents the construction of a compound type, such as "vec2(x, y)". |
*/ |
struct Constructor : public Expression { |
- Constructor(Position position, std::shared_ptr<Type> type, |
+ Constructor(Position position, const Type& type, |
std::vector<std::unique_ptr<Expression>> arguments) |
- : INHERITED(position, kConstructor_Kind, std::move(type)) |
+ : INHERITED(position, kConstructor_Kind, type) |
, fArguments(std::move(arguments)) {} |
std::string description() const override { |
- std::string result = fType->description() + "("; |
+ std::string result = fType.description() + "("; |
std::string separator = ""; |
for (size_t i = 0; i < fArguments.size(); i++) { |
result += separator; |