diff options
author | Chris Lattner <sabre@nondot.org> | 2007-08-26 16:22:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-08-26 16:22:13 +0000 |
commit | 190dbe203c2e892ac40f1786035c6c9be3f44a4c (patch) | |
tree | 206e062a38828932c9970b1aa853e32b15e09a37 /CodeGen/CGExprComplex.cpp | |
parent | 26b8ff45bab784183018f79ec95327aac4e7e8b0 (diff) |
be slightly more volatile correct
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CGExprComplex.cpp')
-rw-r--r-- | CodeGen/CGExprComplex.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CodeGen/CGExprComplex.cpp b/CodeGen/CGExprComplex.cpp index 49b5859f8b..9f1bd2a0ac 100644 --- a/CodeGen/CGExprComplex.cpp +++ b/CodeGen/CGExprComplex.cpp @@ -383,10 +383,11 @@ ComplexPairTy CodeGenFunction::EmitComplexExpr(const Expr *E) { /// EmitComplexExprIntoAddr - Emit the computation of the specified expression /// of complex type, storing into the specified Value*. void CodeGenFunction::EmitComplexExprIntoAddr(const Expr *E, - llvm::Value *DestAddr) { + llvm::Value *DestAddr, + bool DestIsVolatile) { assert(E && E->getType()->isComplexType() && "Invalid complex expression to emit"); ComplexExprEmitter Emitter(*this); ComplexPairTy Val = Emitter.Visit(const_cast<Expr*>(E)); - Emitter.EmitStoreOfComplex(Val, DestAddr, false); + Emitter.EmitStoreOfComplex(Val, DestAddr, DestIsVolatile); } |