Skip to content

Commit

Permalink
[InstCombine] Remove call to getPointerElementType()
Browse files Browse the repository at this point in the history
This was erroneously re-introduced as part of
bb0b231.
  • Loading branch information
nikic committed Mar 29, 2022
1 parent 5b6207f commit 682ef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
Expand Up @@ -3292,7 +3292,7 @@ bool InstCombinerImpl::transformConstExprCastCall(CallBase &Call) {
!ParamTy->isOpaquePointerTy()) {
AttrBuilder AB(Ctx, CallerPAL.getParamAttrs(i).removeAttributes(
Ctx, IncompatibleAttrs));
AB.addByValAttr(NewArg->getType()->getPointerElementType());
AB.addByValAttr(ParamTy->getNonOpaquePointerElementType());
ArgAttrs.push_back(AttributeSet::get(Ctx, AB));
} else {
ArgAttrs.push_back(
Expand Down

0 comments on commit 682ef39

Please sign in to comment.