| Index: src/sksl/ir/SkSLIntLiteral.h
|
| diff --git a/src/sksl/ir/SkSLIntLiteral.h b/src/sksl/ir/SkSLIntLiteral.h
|
| index 2bc565712e41925c79311342a1132c0969f23bcd..8921c283b5bf82cdbb84502331884008d4d127af 100644
|
| --- a/src/sksl/ir/SkSLIntLiteral.h
|
| +++ b/src/sksl/ir/SkSLIntLiteral.h
|
| @@ -18,8 +18,8 @@ namespace SkSL {
|
| struct IntLiteral : public Expression {
|
| // FIXME: we will need to revisit this if/when we add full support for both signed and unsigned
|
| // 64-bit integers, but for right now an int64_t will hold every value we care about
|
| - IntLiteral(const Context& context, Position position, int64_t value)
|
| - : INHERITED(position, kIntLiteral_Kind, *context.fInt_Type)
|
| + IntLiteral(const Context& context, Position position, int64_t value, const Type* type = nullptr)
|
| + : INHERITED(position, kIntLiteral_Kind, type ? *type : *context.fInt_Type)
|
| , fValue(value) {}
|
|
|
| virtual std::string description() const override {
|
|
|