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
Invalid usage of the XADD return value #91888
Comments
Could you please try 18 or |
Yes, it happens with 18 and main.
Here is with trunk branch:
Here with 18.1:
|
This might be a clue: If I change
|
Reduced: @GLOBAL_EVENT_ID = global i32 0, align 4
define i32 @next_event_id() #0 {
entry:
%0 = atomicrmw add ptr @GLOBAL_EVENT_ID, i32 1 seq_cst, align 4
ret i32 %0
} Currently, BPF has XADD (locked add) insn support and the
The instruction itself does not have a return value. At the source code level, users often use
which eventually translates to XADD. The return value of
if compiled with -g, or
if compiled without -g.
This is indeed another bug though. |
When building an eBPF program, I get the final error:
The text was updated successfully, but these errors were encountered: