summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-16 19:45:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-16 19:45:20 +0000
commitfd09df7839fcaf31d5793b613a6cfb0e2e67bf56 (patch)
treeeceb81fb7f5b133f14b2fdd1aca7d7bb80edd751 /clang/lib/CodeGen
parent29a32dab4ad8b1f594d450f4ef62c39ec413b319 (diff)
downloadbcm5719-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.cpp4
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);
OpenPOWER on IntegriCloud