diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-10-19 01:21:05 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-19 01:21:05 +0000 |
| commit | 259e9ccf882d11491ad149aec5e6d7a061c9f938 (patch) | |
| tree | c996f57785f757ce0b4acd0f6dee2e1da50f1ce6 /lib/CodeGen/CGExpr.cpp | |
| parent | d0c10e20d5ba8c1a8a077db128c03eddc3158673 (diff) | |
| download | clang-259e9ccf882d11491ad149aec5e6d7a061c9f938.tar.gz clang-259e9ccf882d11491ad149aec5e6d7a061c9f938.tar.bz2 clang-259e9ccf882d11491ad149aec5e6d7a061c9f938.tar.xz | |
Twinify CodeGenFunction::CreateTempAlloca
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 01fb766dfb..6542aa50d2 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -28,9 +28,9 @@ using namespace CodeGen; /// CreateTempAlloca - This creates a alloca and inserts it into the entry /// block. llvm::AllocaInst *CodeGenFunction::CreateTempAlloca(const llvm::Type *Ty, - const char *Name) { + const llvm::Twine &Name) { if (!Builder.isNamePreserving()) - Name = ""; + return new llvm::AllocaInst(Ty, 0, "", AllocaInsertPt); return new llvm::AllocaInst(Ty, 0, Name, AllocaInsertPt); } |
