Skip to content

Commit

Permalink
LLVM 15 build fix
Browse files Browse the repository at this point in the history
.
  • Loading branch information
mshelego authored and sys-cmllvm committed Mar 3, 2023
1 parent f5a087e commit 721a39c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,8 @@ class SingleElementVectorInstRewriter
std::vector<Value *> IdxList;
std::transform(NewVals.begin() + 1, NewVals.end(),
std::back_inserter(IdxList), [](Value *V) { return V; });
auto *PointeeType =
cast<PointerType>(NewVals[0]->getType()->getScalarType())
->getPointerElementType();
auto *PointeeType = VCINTR::Type::getNonOpaquePtrEltTy(
cast<PointerType>(NewVals[0]->getType()->getScalarType()));
return GetElementPtrInst::Create(PointeeType, NewVals[0], IdxList, "",
&OldInst);
}
Expand Down

0 comments on commit 721a39c

Please sign in to comment.