[clang] [Clang][CodeGen] Use EmitLoadOfLValue instead of EmitLoadOfScalar to get LHS for complex compound assignment (PR #166798)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:32:12 PST 2025


================
@@ -0,0 +1,10 @@
+// Reduced from https://github.com/llvm/llvm-project/issues/166512
+// RUN: %clang_cc1 %s -emit-obj -std=c23 -fsanitize=bool -o %t
----------------
efriedma-quic wrote:

I'd prefer to have a test that actually checks that we generate correct code, not just that we generate code without crashing.

update_cc_test_checks.py is an easy way to write checks.

https://github.com/llvm/llvm-project/pull/166798


More information about the cfe-commits mailing list