Skip to content

Commit 4b211b9

Browse files
committed
[mlir][drr] Make error easier to understand
Changes error from error: referencing unbound symbol '' to error: raw string not supported as argument
1 parent f5fdb61 commit 4b211b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/tools/mlir-tblgen/RewriterGen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ std::string PatternEmitter::handleLocationDirective(DagNode tree) {
734734

735735
std::string PatternEmitter::handleOpArgument(DagLeaf leaf,
736736
StringRef patArgName) {
737+
if (leaf.isStringAttr())
738+
PrintFatalError(loc, "raw string not supported as argument");
737739
if (leaf.isConstantAttr()) {
738740
auto constAttr = leaf.getAsConstantAttr();
739741
return handleConstantAttr(constAttr.getAttribute(),

0 commit comments

Comments
 (0)