mirror of https://github.com/llvm/torch-mlir
Add missing early return.
Found with more strict build flags.20230821_fix_missing_return
parent
3dd29f9d5d
commit
8efb2c501f
|
@ -4808,7 +4808,7 @@ public:
|
|||
int64_t inputRank = inputSizes.size();
|
||||
auto outputType = op.getType().cast<BaseTensorType>();
|
||||
if (!outputType.hasSizes()) {
|
||||
rewriter.notifyMatchFailure(
|
||||
return rewriter.notifyMatchFailure(
|
||||
op, "only output with shape information is supported");
|
||||
}
|
||||
auto outputRank = outputType.getSizes().size();
|
||||
|
|
Loading…
Reference in New Issue