Fixup codegen for volatile structs in the trivial cases (a a=a and a=a=a).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72439 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index da586b1..b13b9e5 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/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");
}