diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-05-19 18:50:41 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-05-19 18:50:41 +0000 |
| commit | b4aa4664ec851573624a7a29c6c750fc1d5cc268 (patch) | |
| tree | 424623e89fc0b5168bae44e654a6196aeede0ac8 /lib/CodeGen/CGExpr.cpp | |
| parent | 9f84d88a302ea38cf0695ce8cdace47178d2fff4 (diff) | |
| download | clang-b4aa4664ec851573624a7a29c6c750fc1d5cc268.tar.gz clang-b4aa4664ec851573624a7a29c6c750fc1d5cc268.tar.bz2 clang-b4aa4664ec851573624a7a29c6c750fc1d5cc268.tar.xz | |
Pass the destination QualType to EmitStoreOfScalar. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 212ce10bdd..24d885cec5 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -210,7 +210,7 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(llvm::Value *Addr, bool Volatile, } void CodeGenFunction::EmitStoreOfScalar(llvm::Value *Value, llvm::Value *Addr, - bool Volatile) { + bool Volatile, QualType Ty) { // Handle stores of types which have different representations in memory and // as LLVM values. @@ -449,8 +449,8 @@ void CodeGenFunction::EmitStoreThroughLValue(RValue Src, LValue Dst, } assert(Src.isScalar() && "Can't emit an agg store with this method"); - EmitStoreOfScalar(Src.getScalarVal(), Dst.getAddress(), - Dst.isVolatileQualified()); + EmitStoreOfScalar(Src.getScalarVal(), Dst.getAddress(), + Dst.isVolatileQualified(), Ty); } void CodeGenFunction::EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst, |
