Skip to content

Commit

Permalink
[Autobackout][FuncReg]Revert of change: a1240fa
Browse files Browse the repository at this point in the history
 Fixed incorrect cast in JointMatrixResolution.

Incorrect cast caused the other branch of if-else expression to be
effictively dead, instead of handling the case when given type is not a
vector. This commit addresses issue #209.
  • Loading branch information
mbelicki authored and igcbot committed Oct 26, 2021
1 parent 8806400 commit d08d522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static Type *getIntegerEquivalent(Type *matTy) {
return matTy;
}

if (IGCLLVM::FixedVectorType *VT = dyn_cast<IGCLLVM::FixedVectorType>(matTy)) {
if (IGCLLVM::FixedVectorType *VT = cast<IGCLLVM::FixedVectorType>(matTy)) {
unsigned elements = (unsigned) VT->getNumElements();
unsigned size = VT->getElementType()->getScalarSizeInBits();
Type *elementType = Type::getIntNTy(matTy->getContext(), size);
Expand Down

0 comments on commit d08d522

Please sign in to comment.