diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 04:20:22 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-21 04:20:22 +0000 |
commit | 5c816378f80334c2b88b0c887be51dca6c49a8ed (patch) | |
tree | 0f6c371b840574944c0b8943584422dab7165e9c /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 49e5d12e592fb7877c385f1d89d2dd6900c18d55 (diff) | |
download | bcm5719-llvm-5c816378f80334c2b88b0c887be51dca6c49a8ed.tar.gz bcm5719-llvm-5c816378f80334c2b88b0c887be51dca6c49a8ed.zip |
IRgen: Set the alignment correctly when creating LValue for a decls.
- Fixes PR5598.
- Review appreciated.
llvm-svn: 111726
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 603d309e63e..f54a0113e70 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -969,8 +969,8 @@ public: // Helpers //===--------------------------------------------------------------------===// - LValue MakeAddrLValue(llvm::Value *V, QualType T) { - return LValue::MakeAddr(V, T, 0, getContext()); + LValue MakeAddrLValue(llvm::Value *V, QualType T, unsigned Alignment = 0) { + return LValue::MakeAddr(V, T, Alignment, getContext()); } /// CreateTempAlloca - This creates a alloca and inserts it into the entry |