diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-16 19:45:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-16 19:45:20 +0000 |
commit | fd09df7839fcaf31d5793b613a6cfb0e2e67bf56 (patch) | |
tree | eceb81fb7f5b133f14b2fdd1aca7d7bb80edd751 /clang/lib/CodeGen | |
parent | 29a32dab4ad8b1f594d450f4ef62c39ec413b319 (diff) | |
download | bcm5719-llvm-fd09df7839fcaf31d5793b613a6cfb0e2e67bf56.tar.gz bcm5719-llvm-fd09df7839fcaf31d5793b613a6cfb0e2e67bf56.zip |
IRgen: Switch 'retval' to use CreateIRTemp.
llvm-svn: 96376
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 5a4f94e3e09..febffc96973 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -216,10 +216,10 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, } else if (CurFnInfo->getReturnInfo().getKind() == ABIArgInfo::Indirect && hasAggregateLLVMType(CurFnInfo->getReturnType())) { // Indirect aggregate return; emit returned value directly into sret slot. - // This reduces code size, and is also affects correctness in C++. + // This reduces code size, and affects correctness in C++. ReturnValue = CurFn->arg_begin(); } else { - ReturnValue = CreateTempAlloca(ConvertType(RetTy), "retval"); + ReturnValue = CreateIRTemp(RetTy, "retval"); } EmitStartEHSpec(CurCodeDecl); |