moved SkSL InterfaceBlock data into IRNode

Change-Id: If85369d978e395502b2169d605c2513a9086b57e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326916
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLIRGenerator.cpp b/src/sksl/SkSLIRGenerator.cpp
index 8a5d42d..1b20c73 100644
--- a/src/sksl/SkSLIRGenerator.cpp
+++ b/src/sksl/SkSLIRGenerator.cpp
@@ -774,7 +774,7 @@
     const Variable* skPerVertex = nullptr;
     if (const ProgramElement* perVertexDecl = fIntrinsics->find(Compiler::PERVERTEX_NAME)) {
         SkASSERT(perVertexDecl->is<InterfaceBlock>());
-        skPerVertex = perVertexDecl->as<InterfaceBlock>().fVariable;
+        skPerVertex = &perVertexDecl->as<InterfaceBlock>().variable();
     }
 
     // sk_Position = float4(sk_Position.xy * rtAdjust.xz + sk_Position.ww * rtAdjust.yw,
@@ -2835,7 +2835,7 @@
                     initialValue = decl.value().get();
                 } else {
                     SkASSERT(clonedDecl->is<InterfaceBlock>());
-                    sharedVar = clonedDecl->as<InterfaceBlock>().fVariable;
+                    sharedVar = &clonedDecl->as<InterfaceBlock>().variable();
                 }
 
                 // Now clone the Variable, and add the clone to the Program's symbol table.
@@ -2852,7 +2852,7 @@
                     GlobalVarDeclaration& global = clonedDecl->as<GlobalVarDeclaration>();
                     global.declaration()->as<VarDeclaration>().setVar(clonedVar);
                 } else {
-                    clonedDecl->as<InterfaceBlock>().fVariable = clonedVar;
+                    clonedDecl->as<InterfaceBlock>().setVariable(clonedVar);
                 }
 
                 // Remember this new re-mapping...