diff --git a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp index 188969798cbd..6f143812858e 100644 --- a/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp @@ -1949,7 +1949,7 @@ mlir::Value ScalarExprEmitter::buildCompoundAssign( return RHS; // If the lvalue is non-volatile, return the computed value of the assignment. - if (!LHS.isVolatile()) + if (!LHS.isVolatileQualified()) return RHS; // Otherwise, reload the value.