Index: src/sksl/ir/SkSLFieldAccess.h |
diff --git a/src/sksl/ir/SkSLFieldAccess.h b/src/sksl/ir/SkSLFieldAccess.h |
index f09c3a344709e3a4f2ceb922c2c531055c8e0d93..053498e154c85f1ea15f267a2dcc2eea0d5d76f7 100644 |
--- a/src/sksl/ir/SkSLFieldAccess.h |
+++ b/src/sksl/ir/SkSLFieldAccess.h |
@@ -18,12 +18,12 @@ |
*/ |
struct FieldAccess : public Expression { |
FieldAccess(std::unique_ptr<Expression> base, int fieldIndex) |
- : 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) {} |
virtual std::string description() const override { |
- return fBase->description() + "." + fBase->fType.fields()[fFieldIndex].fName; |
+ return fBase->description() + "." + fBase->fType->fields()[fFieldIndex].fName; |
} |
const std::unique_ptr<Expression> fBase; |