aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-24 04:00:27 +0000
committerChris Lattner <sabre@nondot.org>2008-11-24 04:00:27 +0000
commit39f34e97d6a468f0a7dfa5664c61217cffc65b74 (patch)
tree9681872a04f2582824f6038b5df91cea35bb4742 /lib/CodeGen/CGCall.cpp
parent8ec03f58c33c33a917f54bb7f2cd61b6d7ffe0ca (diff)
Migrate some stuff from NamedDecl::getName() to
NamedDecl::getNameAsString() to make it more explicit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 037bbb1a2a..1fc4143d60 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -716,7 +716,7 @@ void CodeGenFunction::EmitFunctionProlog(llvm::Function *Fn,
// If this was structure was expand into multiple arguments then
// we need to create a temporary and reconstruct it from the
// arguments.
- std::string Name(Arg->getName());
+ std::string Name = Arg->getNameAsString();
llvm::Value *Temp = CreateTempAlloca(ConvertType(Ty),
(Name + ".addr").c_str());
// FIXME: What are the right qualifiers here?