File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
mlir/test/lib/Dialect/Test Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,14 @@ parseSignedness(DialectAsmParser &parser,
31
31
auto loc = parser.getCurrentLocation ();
32
32
if (parser.parseKeyword (&signStr))
33
33
return failure ();
34
- if (signStr.compare_lower (" u" ) || signStr.compare_lower (" unsigned" ))
34
+ if (signStr.compare_insensitive (" u" ) ||
35
+ signStr.compare_insensitive (" unsigned" ))
35
36
result = TestIntegerType::SignednessSemantics::Unsigned;
36
- else if (signStr.compare_lower (" s" ) || signStr.compare_lower (" signed" ))
37
+ else if (signStr.compare_insensitive (" s" ) ||
38
+ signStr.compare_insensitive (" signed" ))
37
39
result = TestIntegerType::SignednessSemantics::Signed;
38
- else if (signStr.compare_lower (" n" ) || signStr.compare_lower (" none" ))
40
+ else if (signStr.compare_insensitive (" n" ) ||
41
+ signStr.compare_insensitive (" none" ))
39
42
result = TestIntegerType::SignednessSemantics::Signless;
40
43
else
41
44
return parser.emitError (loc, " expected signed, unsigned, or none" );
You can’t perform that action at this time.
0 commit comments