diff options
-rw-r--r-- | include/llvm/Type.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 20a3d6d03e..2aac381d0b 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -201,8 +201,7 @@ public: /// TargetData subsystem to do this. /// bool isSized() const { - return (ID >= BoolTyID && ID <= DoubleTyID) || ID == PointerTyID || - isSizedDerivedType(); + return !isAbstract() || ID == PointerTyID || isSizedDerivedType(); } /// getPrimitiveSize - Return the basic size of this type if it is a primitive |