summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-12-05 22:23:28 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-12-05 22:23:28 +0000
commit6d694a38fd2bd848dd1a433c2a23df8978c2bb58 (patch)
tree541061bb3e29ae1bfcedd5fe3e03ca88379b79ca /clang/lib/CodeGen/CodeGenFunction.h
parent8b5e92577b6c69037831caf9e5a177ab474de379 (diff)
downloadbcm5719-llvm-6d694a38fd2bd848dd1a433c2a23df8978c2bb58.tar.gz
bcm5719-llvm-6d694a38fd2bd848dd1a433c2a23df8978c2bb58.zip
Make EmitAggregateCopy take an alignment argument. Make EmitFinalDestCopy pass in the correct alignment when known.
The test includes a FIXME for a related case involving calls; it's a bit more complicated to fix because the RValue class doesn't keep track of alignment. <rdar://problem/10463337> llvm-svn: 145862
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index d611996bd1e..abd86f7c4ec 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1624,7 +1624,8 @@ public:
/// \param isVolatile - True iff either the source or the destination is
/// volatile.
void EmitAggregateCopy(llvm::Value *DestPtr, llvm::Value *SrcPtr,
- QualType EltTy, bool isVolatile=false);
+ QualType EltTy, bool isVolatile=false,
+ unsigned Alignment = 0);
/// StartBlock - Start new block named N. If insert block is a dummy block
/// then reuse it.
OpenPOWER on IntegriCloud