Skip to content

Commit bce2e7b

Browse files
fda0igcbot
authored andcommitted
Use appropriate llvm cast in JointMatrixResolutionPass
Use cast instead of dyn_cast when we don't expect the casting to fail.
1 parent 58ad14f commit bce2e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/JointMatrixFuncsResolutionPass/JointMatrixFuncsResolutionPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ void JointMatrixFuncsResolutionPass::preprocessAccessChain(Function *F) {
19911991
Value *index = CI->getArgOperand(1);
19921992

19931993
Instruction *memInst =
1994-
dyn_cast<Instruction>(IGCLLVM::getUniqueUndroppableUser(CI));
1994+
cast<Instruction>(IGCLLVM::getUniqueUndroppableUser(CI));
19951995
// Expected format is:
19961996
// %matrix_ptr = alloca %matrix_type
19971997
// (may be some casts)

0 commit comments

Comments
 (0)