Index: src/sksl/ir/SkSLFieldAccess.h |
diff --git a/src/sksl/ir/SkSLFieldAccess.h b/src/sksl/ir/SkSLFieldAccess.h |
index bcdd7eea4fbebbf83e3d773623abd00a1e4c9c9a..4be4e9e84c13e1023a83e7aaf31a3a040095c339 100644 |
--- a/src/sksl/ir/SkSLFieldAccess.h |
+++ b/src/sksl/ir/SkSLFieldAccess.h |
@@ -26,7 +26,7 @@ struct FieldAccess : public Expression { |
FieldAccess(std::unique_ptr<Expression> base, int fieldIndex, |
OwnerKind ownerKind = kDefault_OwnerKind) |
- : INHERITED(base->fPosition, kFieldAccess_Kind, base->fType.fields()[fieldIndex].fType) |
+ : INHERITED(base->fPosition, kFieldAccess_Kind, *base->fType.fields()[fieldIndex].fType) |
, fBase(std::move(base)) |
, fFieldIndex(fieldIndex) |
, fOwnerKind(ownerKind) {} |