diff options
| author | Mike Stump <mrs@apple.com> | 2009-05-26 22:03:21 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-05-26 22:03:21 +0000 |
| commit | 49d1cd5a09ed3df353371fd7f206674a85e0fb45 (patch) | |
| tree | a076a970c34ce0633615e4ef11df535a1573c6be /lib/CodeGen/CGExpr.cpp | |
| parent | 2f1735c643abfc7c18bf7d0ad95b716099d43ccf (diff) | |
| download | clang-49d1cd5a09ed3df353371fd7f206674a85e0fb45.tar.gz clang-49d1cd5a09ed3df353371fd7f206674a85e0fb45.tar.bz2 clang-49d1cd5a09ed3df353371fd7f206674a85e0fb45.tar.xz | |
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
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 559bd4c60b..ad96d2e573 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -49,13 +49,13 @@ llvm::Value *CodeGenFunction::EvaluateExprAsBool(const Expr *E) { /// aggregate expression, the aggloc/agglocvolatile arguments indicate where /// the result should be returned. RValue CodeGenFunction::EmitAnyExpr(const Expr *E, llvm::Value *AggLoc, - bool isAggLocVolatile) { + bool isAggLocVolatile, bool IgnoreResult) { if (!hasAggregateLLVMType(E->getType())) return RValue::get(EmitScalarExpr(E)); else if (E->getType()->isAnyComplexType()) return RValue::getComplex(EmitComplexExpr(E)); - EmitAggExpr(E, AggLoc, isAggLocVolatile); + EmitAggExpr(E, AggLoc, isAggLocVolatile, IgnoreResult); return RValue::getAggregate(AggLoc, isAggLocVolatile); } |
