@@ -28,14 +28,14 @@ void PolynomialAttr::print(AsmPrinter &p) const {
28
28
// / variable name. Sets shouldParseMore to true if the monomial is followed by
29
29
// / a '+'.
30
30
ParseResult parseMonomial (AsmParser &parser, Monomial &monomial,
31
- llvm::StringRef &variable, bool * isConstantTerm,
32
- bool * shouldParseMore) {
31
+ llvm::StringRef &variable, bool & isConstantTerm,
32
+ bool & shouldParseMore) {
33
33
APInt parsedCoeff (apintBitWidth, 1 );
34
34
auto parsedCoeffResult = parser.parseOptionalInteger (parsedCoeff);
35
35
monomial.coefficient = parsedCoeff;
36
36
37
- * isConstantTerm = false ;
38
- * shouldParseMore = false ;
37
+ isConstantTerm = false ;
38
+ shouldParseMore = false ;
39
39
40
40
// A + indicates it's a constant term with more to go, as in `1 + x`.
41
41
if (succeeded (parser.parseOptionalPlus ())) {
@@ -45,8 +45,8 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
45
45
return failure ();
46
46
}
47
47
monomial.exponent = APInt (apintBitWidth, 0 );
48
- * isConstantTerm = true ;
49
- * shouldParseMore = true ;
48
+ isConstantTerm = true ;
49
+ shouldParseMore = true ;
50
50
return success ();
51
51
}
52
52
@@ -59,7 +59,7 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
59
59
}
60
60
61
61
monomial.exponent = APInt (apintBitWidth, 0 );
62
- * isConstantTerm = true ;
62
+ isConstantTerm = true ;
63
63
return success ();
64
64
}
65
65
@@ -86,7 +86,7 @@ ParseResult parseMonomial(AsmParser &parser, Monomial &monomial,
86
86
}
87
87
88
88
if (succeeded (parser.parseOptionalPlus ())) {
89
- * shouldParseMore = true ;
89
+ shouldParseMore = true ;
90
90
}
91
91
return success ();
92
92
}
@@ -105,7 +105,7 @@ Attribute PolynomialAttr::parse(AsmParser &parser, Type type) {
105
105
bool isConstantTerm;
106
106
bool shouldParseMore;
107
107
if (failed (parseMonomial (parser, parsedMonomial, parsedVariableRef,
108
- & isConstantTerm, & shouldParseMore))) {
108
+ isConstantTerm, shouldParseMore))) {
109
109
parser.emitError (parser.getCurrentLocation (), " expected a monomial" );
110
110
return {};
111
111
}
0 commit comments