diff options
author | John McCall <rjmccall@apple.com> | 2010-02-05 01:33:36 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-05 01:33:36 +0000 |
commit | 5cfa011e61e14e6f2e1659047d809706c0e4c6a3 (patch) | |
tree | 76f49243d44cdc882a04f7ecf13fff34f0694712 /lib/CodeGen/CodeGenTypes.cpp | |
parent | 82287d19ded35248c4ce6a425ce74116a13ce44e (diff) |
Always start tag definitions before completing them. Assert same.
Fixes latent and not-so-latent objc++ and blocks++ bugs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95340 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 e2f45fe076..bcae945ade 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -410,8 +410,8 @@ const llvm::Type *CodeGenTypes::ConvertTagDeclType(const TagDecl *TD) { if (TDTI != TagDeclTypes.end()) return TDTI->second; - // If this is still a forward definition, just define an opaque type to use - // for this tagged decl. + // If this is still a forward declaration, just define an opaque + // type to use for this tagged decl. if (!TD->isDefinition()) { llvm::Type *ResultType = llvm::OpaqueType::get(getLLVMContext()); TagDeclTypes.insert(std::make_pair(Key, ResultType)); |