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

[cbs] Fix compatibility issues with upstream Clang/LLVM #763

Merged
merged 1 commit into from
Jul 9, 2022

Conversation

aaronmondal
Copy link
Contributor

@aaronmondal aaronmondal commented Jul 8, 2022

This commit adds two missing headers whose contents have
been moved in upstream Clang/LLVM. It also changes a call
from PointerType::getElementType() to
Type::getPointerElementType() as a temporary fix
until opaque pointers are introduced. The former was already
deprecated in Clang/LLVM 14 and has been removed in upstream.

This commit adds two missing headers whose contents have
been moved in upstream Clang/LLVM. It also changes a call
from `PointerType::getElementType()` to
`Type::getPointerElementType()` as a temporary fix
until opaque pointers are introduced. The former was already
deprecated in Clang/LLVM 14 and has been removed in upstream.
@aaronmondal
Copy link
Contributor Author

Fixed commit message. Is actually Type::getPointerElementType, not PointerType::getPointerElementType.

Copy link
Collaborator

@fodinabor fodinabor left a comment

Choose a reason for hiding this comment

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

Hey, thank you!
Looks like a good first step in the right direction.
As far as I could tell, this should fix the build issues, but not the runtime issues.
I'll follow up with another PR that fixes those as well.

@aaronmondal
Copy link
Contributor Author

@fodinabor Yes. This only fixes compile-time issues. The clang plugin still fails (unregistered passes or something like that if i remember correctly). I'll create an issue with my findings so far 😊

@illuhad illuhad merged commit 4d06890 into AdaptiveCpp:develop Jul 9, 2022
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.

None yet

3 participants