aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-30 01:38:41 +0000
committerChris Lattner <sabre@nondot.org>2003-10-30 01:38:41 +0000
commit9f6a519027df743c4f3a069c4373441e942ab966 (patch)
tree73a522e5355d918693acabcfd513db5c70c05141 /include/llvm/Type.h
parent8ea8f36a7fc2c4e069ccd3b95581535c5bd3f09d (diff)
downloadexternal_llvm-9f6a519027df743c4f3a069c4373441e942ab966.zip
external_llvm-9f6a519027df743c4f3a069c4373441e942ab966.tar.gz
external_llvm-9f6a519027df743c4f3a069c4373441e942ab966.tar.bz2
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
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index b1ce475..4c9fd1d 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