summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-10-12 17:06:17 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-10-12 17:06:17 +0000
commit207f2d4056ac6991419603179911cb09cf4a9966 (patch)
treecc14a45c12251f1bc867dd7eb210ddb164848b4c /include
parent15d879e1397238bc7b771e3dd3892b8574d03fc2 (diff)
downloadllvm-207f2d4056ac6991419603179911cb09cf4a9966.tar.gz
llvm-207f2d4056ac6991419603179911cb09cf4a9966.tar.bz2
llvm-207f2d4056ac6991419603179911cb09cf4a9966.tar.xz
Opaque types are considered to be first-class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16936 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Type.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 3324b8e423..0fb34c5261 100644
--- a/include/llvm/Type.h
+++ b/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