From 4e95bec7b7c96fa3f85fa6ac6730ea101c241c5e Mon Sep 17 00:00:00 2001 From: Nathan Lanza Date: Sat, 27 Apr 2024 01:04:56 -0400 Subject: [PATCH] [CIR][CodeGen] Fix a usage of volatile -> volatileQualified --- clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.