From 0338401147c20bdb9c221478caa5ae01f2ffab0c Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 12 Oct 2004 17:06:17 +0000 Subject: [PATCH] Opaque types are considered to be first-class. llvm-svn: 16936 --- llvm/include/llvm/Type.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index 3324b8e42368..0fb34c526129 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/include/llvm/Type.h @@ -29,6 +29,8 @@ // users of the unknown type, causing them to reference a new, more concrete // type. Opaque types are deleted when their use list dwindles to zero users. // +// Opaque types are considered to be first-class types. +// //===----------------------------------------------------------------------===// #ifndef LLVM_TYPE_H @@ -192,7 +194,7 @@ public: /// isFirstClassType - Return true if the value is holdable in a register. inline bool isFirstClassType() const { return (ID != VoidTyID && ID <= LastPrimitiveTyID) || - ID == PointerTyID || ID == PackedTyID; + ID == PointerTyID || ID == PackedTyID || ID == OpaqueTyID; } /// isSized - Return true if it makes sense to take the size of this type. To