[clang] [CIR] Upstream get_bitfield operation to load bit-field members from structs (PR #145971)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 27 16:56:04 PDT 2025
================
@@ -76,3 +77,31 @@ void def() {
T t;
U u;
}
+
+int load_field(S* s) {
+ return s->c;
----------------
andykaylor wrote:
Can you add a test case with an unsigned field?
https://github.com/llvm/llvm-project/pull/145971
More information about the cfe-commits
mailing list