Tighten up what we consider to be first class types.
authorChris Lattner <sabre@nondot.org>
Thu, 30 Oct 2003 01:38:41 +0000 (01:38 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 30 Oct 2003 01:38:41 +0000 (01:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h

index b1ce475cecf7411a2002c9e71b29185e1f01afb8..4c9fd1db489e9938372be88d7e590c5a34d4adc8 100644 (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