Tighten up what we consider to be first class types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-10-30 01:38:41 +00:00
parent 8ea8f36a7f
commit 9f6a519027

View File

@ -173,7 +173,7 @@ public:
/// isFirstClassType - Return true if the value is holdable in a register.
inline bool isFirstClassType() const {
return isPrimitiveType() || ID == PointerTyID;
return (ID != VoidTyID && ID < TypeTyID) || ID == PointerTyID;
}
/// isSized - Return true if it makes sense to take the size of this type. To