@@ -149,7 +149,7 @@ static LogicalResult verifyInitializationAttribute(Operation *op,
149149
150150 Type resultType = op->getResult (0 ).getType ();
151151 if (auto lType = dyn_cast<LValueType>(resultType))
152- resultType = lType.getValue ();
152+ resultType = lType.getValueType ();
153153 Type attrType = cast<TypedAttr>(value).getType ();
154154
155155 if (isPointerWideType (resultType) && attrType.isIndex ())
@@ -229,7 +229,7 @@ LogicalResult emitc::AssignOp::verify() {
229229 return emitOpError () << " cannot assign to block argument" ;
230230
231231 Type valueType = getValue ().getType ();
232- Type variableType = variable.getType ().getValue ();
232+ Type variableType = variable.getType ().getValueType ();
233233 if (variableType != valueType)
234234 return emitOpError () << " requires value's type (" << valueType
235235 << " ) to match variable's type (" << variableType
@@ -862,7 +862,7 @@ LogicalResult emitc::SubscriptOp::verify() {
862862 }
863863 // Check element type.
864864 Type elementType = arrayType.getElementType ();
865- Type resultType = getType ().getValue ();
865+ Type resultType = getType ().getValueType ();
866866 if (elementType != resultType) {
867867 return emitOpError () << " on array operand requires element type ("
868868 << elementType << " ) and result type (" << resultType
@@ -889,7 +889,7 @@ LogicalResult emitc::SubscriptOp::verify() {
889889 }
890890 // Check pointee type.
891891 Type pointeeType = pointerType.getPointee ();
892- Type resultType = getType ().getValue ();
892+ Type resultType = getType ().getValueType ();
893893 if (pointeeType != resultType) {
894894 return emitOpError () << " on pointer operand requires pointee type ("
895895 << pointeeType << " ) and result type (" << resultType
@@ -1144,9 +1144,9 @@ GetGlobalOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
11441144
11451145 // global has non-array type
11461146 auto lvalueType = dyn_cast<LValueType>(resultType);
1147- if (!lvalueType || lvalueType.getValue () != globalType)
1147+ if (!lvalueType || lvalueType.getValueType () != globalType)
11481148 return emitOpError (" on non-array type expects result inner type " )
1149- << lvalueType.getValue () << " to match type " << globalType
1149+ << lvalueType.getValueType () << " to match type " << globalType
11501150 << " of the global @" << getName ();
11511151 return success ();
11521152}
0 commit comments