Add llvm_unreachable to avoid MSVC warning
authorGeoffrey Martin-Noble <gcmn@google.com>
Tue, 20 Oct 2020 02:20:16 +0000 (19:20 -0700)
committerGeoffrey Martin-Noble <gcmn@google.com>
Tue, 20 Oct 2020 03:29:33 +0000 (20:29 -0700)
Without this I get a warning about not all paths returning.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D89760

mlir/lib/Dialect/StandardOps/IR/Ops.cpp

index d682ebc..9fe94fe 100644 (file)
@@ -3003,6 +3003,7 @@ static LogicalResult produceSubViewErrorMsg(SubViewVerificationResult result,
            << expectedType
            << " or a rank-reduced version. (mismatch of result affine map)";
   }
+  llvm_unreachable("unexpected subview verification result");
 }
 
 template <typename OpType>