aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-02 22:52:49 +0000
committerChris Lattner <sabre@nondot.org>2003-09-02 22:52:49 +0000
commita2f3e1d80b58f7b6d3c2d06820dfe9fff6dcc3c7 (patch)
treeab382f3a0adc087f40f895edd66b5322dba87d53
parentd8d6c76a9ae6f4942804e5e2f39b894ca90c9af7 (diff)
Another small speedup, this one to: 2.42s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8335 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 54fe4431ba..57c6e636ae 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -429,8 +429,8 @@ bool Type::isTypeAbstract() {
void DerivedType::setDerivedTypeProperties() {
// If the type is currently thought to be abstract, rescan all of our subtypes
// to see if the type has just become concrete!
- setAbstract(true);
- setAbstract(isTypeAbstract());
+ if (isAbstract())
+ setAbstract(isTypeAbstract());
}