[clang] [CIR] Fix assignment ignore in ScalarExprEmitter (PR #166118)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 4 11:17:01 PST 2025
================
@@ -78,7 +78,7 @@ struct BinOpInfo {
class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
CIRGenFunction &cgf;
CIRGenBuilderTy &builder;
- bool ignoreResultAssign;
+ bool ignoreResultAssign = false;
----------------
bcardosolopes wrote:
Right, I forgot about it. Is there a comment in code anywhere to this effect? Might be handy to have that when comparing OGCG with CIRGen.
https://github.com/llvm/llvm-project/pull/166118
More information about the cfe-commits
mailing list