diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-02 23:23:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-02 23:23:47 +0000 |
commit | 541b63b1a9db77e4a8670e9823711c2c12e58afb (patch) | |
tree | 86c239a870fd104bf7ec61da46cfd4bf517028ff /lib/CodeGen/CodeGenTypes.cpp | |
parent | a0f02aa2275431e02dd3606b12fe643c5e129e54 (diff) |
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/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index bcb3cc5591..0b74e1e636 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -256,11 +256,11 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { VT.getNumElements()); } case Type::FunctionNoProto: - return GetFunctionType(CGFunctionInfo(cast<FunctionTypeNoProto>(&Ty)), + return GetFunctionType(getFunctionInfo(cast<FunctionTypeNoProto>(&Ty)), true); case Type::FunctionProto: { const FunctionTypeProto *FTP = cast<FunctionTypeProto>(&Ty); - return GetFunctionType(CGFunctionInfo(FTP), FTP->isVariadic()); + return GetFunctionType(getFunctionInfo(FTP), FTP->isVariadic()); } case Type::ASQual: |