Skip to content

Commit 2cea9f4

Browse files
committed
Improve error message
1 parent 5b13110 commit 2cea9f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/EmitC/IR/EmitC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ GetGlobalOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
13211321
// global has non-array type
13221322
auto lvalueType = dyn_cast<LValueType>(resultType);
13231323
if (!lvalueType)
1324-
return emitOpError("on non-array type result type is not defined "
1325-
"for the global @")
1324+
return emitOpError("on non-array type expects result type to be an "
1325+
"lvalue type for the global @")
13261326
<< getName();
13271327
if (lvalueType.getValueType() != globalType)
13281328
return emitOpError("on non-array type expects result inner type ")

0 commit comments

Comments
 (0)