Index: src/sksl/ir/SkSLFunctionReference.h |
diff --git a/src/sksl/ir/SkSLFunctionReference.h b/src/sksl/ir/SkSLFunctionReference.h |
index 8afcbb1e32326c6b41fb6d344e183af60735cd9a..d5cc444000c9324b694517b794f33c4839f234fb 100644 |
--- a/src/sksl/ir/SkSLFunctionReference.h |
+++ b/src/sksl/ir/SkSLFunctionReference.h |
@@ -17,8 +17,8 @@ |
* always eventually replaced by FunctionCalls in valid programs. |
*/ |
struct FunctionReference : public Expression { |
- FunctionReference(Position position, std::vector<const FunctionDeclaration*> function) |
- : INHERITED(position, kFunctionReference_Kind, *kInvalid_Type) |
+ FunctionReference(Position position, std::vector<std::shared_ptr<FunctionDeclaration>> function) |
+ : INHERITED(position, kFunctionReference_Kind, kInvalid_Type) |
, fFunctions(function) {} |
virtual std::string description() const override { |
@@ -26,7 +26,7 @@ |
return "<function>"; |
} |
- const std::vector<const FunctionDeclaration*> fFunctions; |
+ const std::vector<std::shared_ptr<FunctionDeclaration>> fFunctions; |
typedef Expression INHERITED; |
}; |