File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/Dialect/Torch/Transforms Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 32
32
#include " torch-mlir/Dialect/Torch/IR/TorchOps.h"
33
33
#include " torch-mlir/Dialect/Torch/Transforms/Passes.h"
34
34
#include " llvm/Support/Debug.h"
35
+ #include " llvm/Support/LogicalResult.h"
35
36
36
37
#define DEBUG_TYPE " torch-inline-global-slots"
37
38
@@ -251,7 +252,9 @@ bool InlineGlobalSlotsAnalysis::isValueSafeTransferFunction(Value value) {
251
252
252
253
SmallVector<Operation *> getBackwardSliceIncludingRoot (Value initialValue) {
253
254
SetVector<Operation *> sliceSet;
254
- getBackwardSlice (initialValue, &sliceSet);
255
+ [[maybe_unused]] LogicalResult ret =
256
+ getBackwardSlice (initialValue, &sliceSet);
257
+ assert (ret.succeeded ());
255
258
SmallVector<Operation *> slice;
256
259
llvm::append_range (slice, sliceSet);
257
260
slice.push_back (initialValue.getDefiningOp ());
You can’t perform that action at this time.
0 commit comments