Skip to content

Commit

Permalink
[CIR][CodeGen] Fix a usage of volatile -> volatileQualified
Browse files Browse the repository at this point in the history
  • Loading branch information
lanza committed Apr 29, 2024
1 parent 7aad880 commit c4db6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c4db6d0

Please sign in to comment.