| Issue |
55520
|
| Summary |
llvm 14 warns with unaligned access for the packed struct.
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
UmeshKalappa0
|
llvm 14 warns like
<source>:24:11: warning: field srcSyncOrNvDdr within 'struct info' is less aligned than 'union (unnamed union at <source>:9:5)' and is usually due to 'struct info' being packed, which can lead to unaligned accesses [-Wunaligned-access]
} srcSyncOrNvDdr;
^
https://godbolt.org/z/89o76xsxb
llvm 13 doesn't warns for the same chunk of code .
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs