We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dyn_cast
cast
1 parent fd0785e commit ef32d01Copy full SHA for ef32d01
mlir/test/lib/Conversion/MathToVCIX/TestMathToVCIXConversion.cpp
@@ -25,7 +25,7 @@ namespace {
25
/// according to LLVM's encoding:
26
/// https://lists.llvm.org/pipermail/llvm-dev/2020-October/145850.html
27
static std::pair<unsigned, VectorType> legalizeVectorType(const Type &type) {
28
- VectorType vt = cast<VectorType>(type);
+ VectorType vt = dyn_cast<VectorType>(type);
29
// To simplify test pass, avoid multi-dimensional vectors.
30
if (!vt || vt.getRank() != 1)
31
return {0, nullptr};
0 commit comments