diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-06-30 00:22:30 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-06-30 00:22:30 +0000 |
commit | a9e05156438dc3f0ef1067ffce80037d9333e022 (patch) | |
tree | 10728e8bb253e09dedcc094e9914880ad1d941fc /lib/CodeGen/CodeGenTypes.cpp | |
parent | 6bc574daab3d3571d888cc4a21df67f2e2a14792 (diff) |
Revert r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead", it is part of a boostrap breaking sequence.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 5c474d557a..6ff394e03c 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -43,14 +43,9 @@ CodeGenTypes::~CodeGenTypes() { } /// ConvertType - Convert the specified type to its LLVM form. -const llvm::Type *CodeGenTypes::ConvertType(QualType T, bool IsRecursive) { - const llvm::Type *RawResult = ConvertTypeRecursive(T); - - if (IsRecursive || PointersToResolve.empty()) - return RawResult; +const llvm::Type *CodeGenTypes::ConvertType(QualType T) { + llvm::PATypeHolder Result = ConvertTypeRecursive(T); - llvm::PATypeHolder Result = RawResult; - // Any pointers that were converted deferred evaluation of their pointee type, // creating an opaque type instead. This is in order to avoid problems with // circular types. Loop through all these defered pointees, if any, and @@ -337,7 +332,7 @@ const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { isVariadic = true; } - return GetFunctionType(*FI, isVariadic, true); + return GetFunctionType(*FI, isVariadic); } case Type::ObjCObject: |