We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0f7a5 commit 5b13110Copy full SHA for 5b13110
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
@@ -1320,7 +1320,11 @@ GetGlobalOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
1320
1321
// global has non-array type
1322
auto lvalueType = dyn_cast<LValueType>(resultType);
1323
- if (!lvalueType || lvalueType.getValueType() != globalType)
+ if (!lvalueType)
1324
+ return emitOpError("on non-array type result type is not defined "
1325
+ "for the global @")
1326
+ << getName();
1327
+ if (lvalueType.getValueType() != globalType)
1328
return emitOpError("on non-array type expects result inner type ")
1329
<< lvalueType.getValueType() << " to match type " << globalType
1330
<< " of the global @" << getName();
0 commit comments