diff options
| author | River Riddle <riverriddle@google.com> | 2019-09-20 19:47:05 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-09-20 19:47:32 -0700 |
| commit | 729727ebc7e9e5b27e73b1ae0fdaa4bb7c312098 (patch) | |
| tree | 1528e2a155d4d0794f7e7a220d980484249cb831 /mlir/lib/Parser | |
| parent | 91125d33ed9a46495a50338ce206ddf5c461a763 (diff) | |
| download | bcm5719-llvm-729727ebc7e9e5b27e73b1ae0fdaa4bb7c312098.tar.gz bcm5719-llvm-729727ebc7e9e5b27e73b1ae0fdaa4bb7c312098.zip | |
NFC: Pass OperationState by reference instead of by pointer.
MLIR follows the LLVM convention of passing by reference instead of by pointer.
PiperOrigin-RevId: 270396945
Diffstat (limited to 'mlir/lib/Parser')
| -rw-r--r-- | mlir/lib/Parser/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp index 6854a0dd37f..88a02d9329f 100644 --- a/mlir/lib/Parser/Parser.cpp +++ b/mlir/lib/Parser/Parser.cpp @@ -3276,7 +3276,7 @@ public: /// Parse an instance of the operation described by 'opDefinition' into the /// provided operation state. - ParseResult parseOperation(OperationState *opState) { + ParseResult parseOperation(OperationState &opState) { if (opDefinition->parseAssembly(*this, opState)) return failure(); return success(); @@ -3782,7 +3782,7 @@ Operation *OperationParser::parseCustomOperation() { OperationState opState(srcLocation, opDefinition->name); CleanupOpStateRegions guard{opState}; CustomOpAsmParser opAsmParser(opLoc, opDefinition, *this); - if (opAsmParser.parseOperation(&opState)) + if (opAsmParser.parseOperation(opState)) return nullptr; // If it emitted an error, we failed. |

