summaryrefslogtreecommitdiff
path: root/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
commit541b63b1a9db77e4a8670e9823711c2c12e58afb (patch)
tree86c239a870fd104bf7ec61da46cfd4bf517028ff /lib/CodeGen/CGExpr.cpp
parenta0f02aa2275431e02dd3606b12fe643c5e129e54 (diff)
downloadclang-541b63b1a9db77e4a8670e9823711c2c12e58afb.tar.gz
clang-541b63b1a9db77e4a8670e9823711c2c12e58afb.tar.bz2
clang-541b63b1a9db77e4a8670e9823711c2c12e58afb.tar.xz
Thread CGFunctionInfo construction through CodeGenTypes.
- Inefficient & leaks memory currently, will be cleaned up subsequently. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 5ed215164b..2c16c1940b 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/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);
}