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 f5fdb61 commit 4b211b9Copy full SHA for 4b211b9
mlir/tools/mlir-tblgen/RewriterGen.cpp
@@ -734,6 +734,8 @@ std::string PatternEmitter::handleLocationDirective(DagNode tree) {
734
735
std::string PatternEmitter::handleOpArgument(DagLeaf leaf,
736
StringRef patArgName) {
737
+ if (leaf.isStringAttr())
738
+ PrintFatalError(loc, "raw string not supported as argument");
739
if (leaf.isConstantAttr()) {
740
auto constAttr = leaf.getAsConstantAttr();
741
return handleConstantAttr(constAttr.getAttribute(),
0 commit comments