Skip to content

Commit 8bf5ca0

Browse files
address comments
1 parent 88b91b4 commit 8bf5ca0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

mlir/include/mlir/IR/Builders.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class OpBuilder : public Builder {
570570
/// Note: This function does not erase the operation on a successful fold.
571571
LogicalResult
572572
tryFold(Operation *op, SmallVectorImpl<Value> &results,
573-
SmallVector<Operation *> *materializedConstants = nullptr);
573+
SmallVectorImpl<Operation *> *materializedConstants = nullptr);
574574

575575
/// Creates a deep copy of the specified operation, remapping any operands
576576
/// that use values outside of the operation using the map that is provided

mlir/lib/IR/Builders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ Operation *OpBuilder::create(Location loc, StringAttr opName,
467467

468468
LogicalResult
469469
OpBuilder::tryFold(Operation *op, SmallVectorImpl<Value> &results,
470-
SmallVector<Operation *> *materializedConstants) {
470+
SmallVectorImpl<Operation *> *materializedConstants) {
471471
assert(results.empty() && "expected empty results");
472472
ResultRange opResults = op->getResults();
473473

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ OperationLegalizer::legalizeWithFold(Operation *op,
20972097

20982098
// Try to fold the operation.
20992099
SmallVector<Value, 2> replacementValues;
2100-
SmallVector<Operation *> newOps;
2100+
SmallVector<Operation *, 2> newOps;
21012101
rewriter.setInsertionPoint(op);
21022102
if (failed(rewriter.tryFold(op, replacementValues, &newOps))) {
21032103
LLVM_DEBUG(logFailure(rewriterImpl.logger, "unable to fold"));

0 commit comments

Comments
 (0)