diff options
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 2 |
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? |