diff options
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r-- | include/llvm/Type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index 493c834533..743a0189db 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -216,8 +216,8 @@ public: /// is a valid type for a Value. /// inline bool isFirstClassType() const { - // Coming soon: first-class struct and array types... - return isSingleValueType(); + return isSingleValueType() || + ID == StructTyID || ID == ArrayTyID; } /// isSingleValueType - Return true if the type is a valid type for a |