Skip to content

Commit

Permalink
Fix vector atomic gep (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Oct 13, 2022
1 parent 1efa420 commit 4d7f77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/GradientUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ class DiffeGradientUtils final : public GradientUtils {
ConstantInt::get(Type::getInt64Ty(vt->getContext()), 0),
ConstantInt::get(Type::getInt32Ty(vt->getContext()), i)};
#if LLVM_VERSION_MAJOR > 7
auto vptr = BuilderM.CreateGEP(vt->getElementType(), ptr, Idxs);
auto vptr = BuilderM.CreateGEP(addingType, ptr, Idxs);
#else
auto vptr = BuilderM.CreateGEP(ptr, Idxs);
#endif
Expand Down

0 comments on commit 4d7f77a

Please sign in to comment.