diff options
| -rw-r--r-- | llvm/lib/VMCore/Type.cpp | 4 |
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()); } |

