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 27, 2024
1 parent 724999c commit 9c4fb4b
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 9c4fb4b

Please sign in to comment.