Fixup codegen for volatile structs in the trivial cases (a a=a and a=a=a).
llvm-svn: 72439
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index da586b1..b13b9e5 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -58,7 +58,7 @@
// Must be an expression in a stmt context. Emit the value (to get
// side-effects) and ignore the result.
if (const Expr *E = dyn_cast<Expr>(S)) {
- EmitAnyExpr(E);
+ EmitAnyExpr(E, 0, false, true);
} else {
ErrorUnsupported(S, "statement");
}