Skip to content

Commit e2afba2

Browse files
authored
fix unnecessary type cast (rust-lang#619)
1 parent b9f3a8f commit e2afba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enzyme/Enzyme/Enzyme.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ class Enzyme : public ModulePass {
661661
ty = DIFFE_TYPE::DUP_ARG;
662662
++i;
663663
Value *offset_arg = CI->getArgOperand(i);
664-
if (auto cint = dyn_cast<IntegerType>(offset_arg->getType())) {
664+
if (offset_arg->getType()->isIntegerTy()) {
665665
batchOffset[i + 1] = offset_arg;
666666
} else {
667667
EmitFailure("IllegalVectorOffset", CI->getDebugLoc(), CI,

0 commit comments

Comments
 (0)