-
Notifications
You must be signed in to change notification settings - Fork 79
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
incorrect cmpxchg signature #230
Comments
Sure, please send PR |
Resolves llir#230. Signed-off-by: Diogo Behrens <diogo.behrens@huawei.com>
Resolves #230. Signed-off-by: Diogo Behrens <diogo.behrens@huawei.com>
@db7 thanks for the detailed bug report and also submitting the one-line fix! You're indeed correct that the second field of the struct returned by the cmpxchg should be a boolean of type Of curiosity, in what kind of projects are you using the Wish you all the best and happy coding. Cheers, |
|
Hi Diogo, Really cool project! Thanks for releasing it as open source. Cheerful regards, |
Here is a long standing bug we have fixed internally. I can create a PR if desired.
Description
The cmpxchg return value has
I1
type, but the package defines it asI8
(see here ). That causes clang to fail to compile generated files that containcmpxchg
.How to reproduce
Save the following code as
input.ll
:Now use this small program with any version of package:
Finally, try to compile the generated file:
Fix
The text was updated successfully, but these errors were encountered: