summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-02 23:23:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-02 23:23:47 +0000
commitbf8c24ad89f39c91a36f711ab7c0eced68864987 (patch)
treef1ae0433cf6445ba08ce647877bb99378d3162c7 /clang/lib/CodeGen/CGExpr.cpp
parentf126e590429416744279d7efc9a8956af455ba43 (diff)
downloadbcm5719-llvm-bf8c24ad89f39c91a36f711ab7c0eced68864987.tar.gz
bcm5719-llvm-bf8c24ad89f39c91a36f711ab7c0eced68864987.zip
Thread CGFunctionInfo construction through CodeGenTypes.
- Inefficient & leaks memory currently, will be cleaned up subsequently. llvm-svn: 63567
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 5ed215164b7..2c16c1940b5 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1102,5 +1102,6 @@ RValue CodeGenFunction::EmitCallExpr(llvm::Value *Callee, QualType CalleeType,
Args.push_back(std::make_pair(EmitAnyExprToTemp(*I),
I->getType()));
- return EmitCall(CGFunctionInfo(ResultType, Args), Callee, Args);
+ return EmitCall(CGM.getTypes().getFunctionInfo(ResultType, Args),
+ Callee, Args);
}
OpenPOWER on IntegriCloud