summaryrefslogtreecommitdiffstats
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
commitcc61a136f71cc2a633f2a9926340f6cba93c6b48 (patch)
tree0f617412c539cf01fcd5607acf1bcf691fd423b3
parent188afa5feb6cb28d567668b4f350c3723be293c6 (diff)
downloadbcm5719-llvm-cc61a136f71cc2a633f2a9926340f6cba93c6b48.tar.gz
bcm5719-llvm-cc61a136f71cc2a633f2a9926340f6cba93c6b48.zip
Another small speedup, this one to: 2.42s
llvm-svn: 8335
-rw-r--r--llvm/lib/VMCore/Type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp
index 54fe4431bab..57c6e636aec 100644
--- a/llvm/lib/VMCore/Type.cpp
+++ b/llvm/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());
}
OpenPOWER on IntegriCloud