Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #11726: updates for llvm-svn api changes #11743

Merged
merged 1 commit into from
Jun 18, 2015
Merged

fix #11726: updates for llvm-svn api changes #11743

merged 1 commit into from
Jun 18, 2015

Conversation

ihnorton
Copy link
Member

No description provided.

# ifdef LLVM37
Value *addr = builder.CreateConstInBoundsGEP2_32(
cast<PointerType>(strct->getType()->getScalarType())->getElementType(),
strct, 0, idx);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is correct. I thought that it would just be elty here, but that causes LLVM to assert out, so I used the type that is checked in the failing assertion... seems to work, but unsightly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you can write the same a bit more concisely as strct->getContainedType(0). i'm surprised as well that it's not the same as elty in some or all cases though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check and change later. the failing case was GenSym in inference, FWIW.

vtjnash added a commit that referenced this pull request Jun 18, 2015
fix #11726: updates for llvm-svn api changes
@vtjnash vtjnash merged commit e2d9150 into master Jun 18, 2015
@vtjnash vtjnash deleted the fix11726 branch June 18, 2015 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants