diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-17 00:51:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-17 00:51:38 +0000 |
commit | 5627377df5439a1d3d46a4e4cef4ae44f84a322b (patch) | |
tree | 2cae32ee17e1b381ecdd942acec881e0b62f313b /lib/CodeGen/CGDecl.cpp | |
parent | 1c9f81b90223a2588b5d2c95152f04896599322c (diff) |
Add support for ABIArgInfo::Expand
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index 4d90cbc84a..6ab227d95a 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -219,8 +219,9 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) { const llvm::Type *LTy = ConvertType(Ty); if (LTy->isSingleValueType()) { // TODO: Alignment - DeclPtr = new llvm::AllocaInst(LTy, 0, std::string(D.getName())+".addr", - AllocaInsertPt); + std::string Name(D.getName()); + Name += ".addr"; + DeclPtr = CreateTempAlloca(LTy, Name.c_str()); // Store the initial value into the alloca. Builder.CreateStore(Arg, DeclPtr,Ty.isVolatileQualified()); |