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

Fixed Compile error #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pikamonvvs
Copy link

Dear Respectful frasercrmck,

Thanks for your contributing a good example of making own LLVM backend.
While I am building your project with gcc-8 or later, I found a small compile error.
The detail that I faced is the same as following.
microsoft/DirectXShaderCompiler#1692

It was about not being able to convert unique_ptr to bool type implicitly.
So it was needed to be modified to convert explicitly, which was I did.

As is
bool hasMD() const { return MDMap; }
To be
bool hasMD() const { return static_cast(MDMap); }

(Actually, I have not yet verified if certain side effects exist when using gcc 4.9.)

Best Regards, ^^

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.

1 participant