mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-15 16:38:41 +00:00
trivial optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29770 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4f4759857
commit
703e92fa1b
@ -714,7 +714,10 @@ static std::vector<UpRefRecord> UpRefs;
|
|||||||
/// thus we can complete the cycle.
|
/// thus we can complete the cycle.
|
||||||
///
|
///
|
||||||
static PATypeHolder HandleUpRefs(const Type *ty) {
|
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);
|
PATypeHolder Ty(ty);
|
||||||
UR_OUT("Type '" << Ty->getDescription() <<
|
UR_OUT("Type '" << Ty->getDescription() <<
|
||||||
"' newly formed. Resolving upreferences.\n" <<
|
"' newly formed. Resolving upreferences.\n" <<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user