[all-commits] [llvm/llvm-project] 71f5e4: [CIR] Fix operator-precedence bugs in assert condi...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Fri Mar 6 23:07:42 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71f5e43bc658d89c507867218052917e816c5180
https://github.com/llvm/llvm-project/commit/71f5e43bc658d89c507867218052917e816c5180
Author: Henrich Lauko <xlauko at mail.muni.cz>
Date: 2026-03-07 (Sat, 07 Mar 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
Log Message:
-----------
[CIR] Fix operator-precedence bugs in assert conditions (#185119)
Due to && binding tighter than ||, asserts of the form
assert(A || B && "msg") always pass when A is true. Add
parentheses so the string message is properly attached:
assert((A || B) && "msg").
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list