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.
1 parent f2f146f commit 5143403Copy full SHA for 5143403
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -234,7 +234,7 @@ static bool isUniformShape(Value *V) {
234
if (I->isBinaryOp())
235
return true;
236
237
- if (auto *Cast = dyn_cast<CastInst>(V))
+ if (auto *Cast = dyn_cast<CastInst>(V)) {
238
switch (Cast->getOpcode()) {
239
case llvm::Instruction::Trunc:
240
case llvm::Instruction::ZExt:
@@ -259,6 +259,8 @@ static bool isUniformShape(Value *V) {
259
case llvm::Instruction::CastOpsEnd:
260
llvm_unreachable("not an actual cast op");
261
}
262
+ llvm_unreachable("unhandled cast opcode");
263
+ }
264
265
switch (I->getOpcode()) {
266
case Instruction::FNeg:
0 commit comments