summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 0fb34c5261..fd5dbdd90f 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -192,6 +192,8 @@ public:
inline bool isDerivedType() const { return ID >= FirstDerivedTyID; }
/// isFirstClassType - Return true if the value is holdable in a register.
+ /// Note that we consider opaque types to be first class, as they may be
+ /// resolved to a first class type later.
inline bool isFirstClassType() const {
return (ID != VoidTyID && ID <= LastPrimitiveTyID) ||
ID == PointerTyID || ID == PackedTyID || ID == OpaqueTyID;