diff options
| author | Mike Stump <mrs@apple.com> | 2009-05-29 15:46:01 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-05-29 15:46:01 +0000 |
| commit | 7f79f9be5916c51c35da4f126b7c12596a101607 (patch) | |
| tree | e9ea6a963a08300641f1485e694233c561340fea /lib/CodeGen/CGExpr.cpp | |
| parent | 6a7330c20cabf1cf1cd46f5dfc183ec3a72add66 (diff) | |
| download | clang-7f79f9be5916c51c35da4f126b7c12596a101607.tar.gz clang-7f79f9be5916c51c35da4f126b7c12596a101607.tar.bz2 clang-7f79f9be5916c51c35da4f126b7c12596a101607.tar.xz | |
Fixup the rest of the trivial cases of the codegen of volatile. If
any body can spot codegen bugs with volatile, or knows of any in the
bug database, let me know.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index e965073c7f..3d07403b07 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -51,9 +51,10 @@ llvm::Value *CodeGenFunction::EvaluateExprAsBool(const Expr *E) { RValue CodeGenFunction::EmitAnyExpr(const Expr *E, llvm::Value *AggLoc, bool isAggLocVolatile, bool IgnoreResult) { if (!hasAggregateLLVMType(E->getType())) - return RValue::get(EmitScalarExpr(E)); + return RValue::get(EmitScalarExpr(E, IgnoreResult)); else if (E->getType()->isAnyComplexType()) - return RValue::getComplex(EmitComplexExpr(E)); + return RValue::getComplex(EmitComplexExpr(E, false, false, + IgnoreResult, IgnoreResult)); EmitAggExpr(E, AggLoc, isAggLocVolatile, IgnoreResult); return RValue::getAggregate(AggLoc, isAggLocVolatile); |
