projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4f4759
)
trivial optimization
author
Chris Lattner
<sabre@nondot.org>
Fri, 18 Aug 2006 17:34:24 +0000
(17:34 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 18 Aug 2006 17:34:24 +0000
(17:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29770
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/llvmAsmParser.y
patch
|
blob
|
history
diff --git
a/lib/AsmParser/llvmAsmParser.y
b/lib/AsmParser/llvmAsmParser.y
index 6a8a0f40d888e1bc22b4470f4bc578e219325bec..7d6a9f7af36d55899eb721c5938d049787db52ef 100644
(file)
--- a/
lib/AsmParser/llvmAsmParser.y
+++ b/
lib/AsmParser/llvmAsmParser.y
@@
-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" <<