Skip to content

Commit 83e2944

Browse files
committed
Revert dyn_cast change
1 parent a4954ce commit 83e2944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/enzyme_ad/jax/Utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ SymmetricResultAnalysis::State SymmetricResultAnalysis::localGuaranteed(
612612
return State::NOTGUARANTEED;
613613
}
614614

615-
auto outTy = dyn_cast<RankedTensorType>(op->getResult(0).getType());
616-
if (!outTy || outTy.getRank() != 2)
615+
auto outTy = cast<RankedTensorType>(op->getResult(0).getType());
616+
if (outTy.getRank() != 2)
617617
return State::NOTGUARANTEED; // this pass only checks for symmetric matrices
618618
if (outTy.getDimSize(0) != outTy.getDimSize(1))
619619
return State::NOTGUARANTEED; // quick check and exit

0 commit comments

Comments
 (0)