Skip to content

Commit c4db6d0

Browse files
committed
[CIR][CodeGen] Fix a usage of volatile -> volatileQualified
1 parent 7aad880 commit c4db6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,7 @@ mlir::Value ScalarExprEmitter::buildCompoundAssign(
19491949
return RHS;
19501950

19511951
// If the lvalue is non-volatile, return the computed value of the assignment.
1952-
if (!LHS.isVolatile())
1952+
if (!LHS.isVolatileQualified())
19531953
return RHS;
19541954

19551955
// Otherwise, reload the value.

0 commit comments

Comments
 (0)