forked from OSchip/llvm-project
Silence compiler warnings
mlir/lib/Parser/Parser.cpp:4484:15: warning: 'parseAssignmentList' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] ParseResult parseAssignmentList(SmallVectorImpl<OperandType> &lhs, ^ mlir/include/mlir/IR/OpImplementation.h:662:3: note: overridden virtual function is here parseAssignmentList(SmallVectorImpl<OperandType> &lhs, ^ mlir/lib/Parser/Parser.cpp:4488:12: warning: unused variable 'type' [-Wunused-variable] Type type; ^
This commit is contained in:
parent
bc1947a6f5
commit
3ac37eb9a9
|
@ -4482,10 +4482,9 @@ public:
|
|||
/// (%x1 = %y1 : type1, %x2 = %y2 : type2, ...).
|
||||
/// The list must contain at least one entry
|
||||
ParseResult parseAssignmentList(SmallVectorImpl<OperandType> &lhs,
|
||||
SmallVectorImpl<OperandType> &rhs) {
|
||||
SmallVectorImpl<OperandType> &rhs) override {
|
||||
auto parseElt = [&]() -> ParseResult {
|
||||
OperandType regionArg, operand;
|
||||
Type type;
|
||||
if (parseRegionArgument(regionArg) || parseEqual() ||
|
||||
parseOperand(operand))
|
||||
return failure();
|
||||
|
|
Loading…
Reference in New Issue