From 9f6a519027df743c4f3a069c4373441e942ab966 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 30 Oct 2003 01:38:41 +0000 Subject: [PATCH] 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 --- include/llvm/Type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Type.h b/include/llvm/Type.h index b1ce475cecf..4c9fd1db489 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -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