trivial optimization

llvm-svn: 29770
This commit is contained in:
Chris Lattner 2006-08-18 17:34:24 +00:00
parent b50974ac75
commit 682e17c128
1 changed files with 4 additions and 1 deletions

View File

@ -714,7 +714,10 @@ static std::vector<UpRefRecord> UpRefs;
/// thus we can complete the cycle.
///
static PATypeHolder HandleUpRefs(const Type *ty) {
if (!ty->isAbstract()) return ty;
// If Ty isn't abstract, or if there are no up-references in it, then there is
// nothing to resolve here.
if (!ty->isAbstract() || UpRefs.empty()) return ty;
PATypeHolder Ty(ty);
UR_OUT("Type '" << Ty->getDescription() <<
"' newly formed. Resolving upreferences.\n" <<