aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-23 01:55:30 +0000
committerDan Gohman <gohman@apple.com>2008-05-23 01:55:30 +0000
commite4977cf750eaff28275429191821420c20b0c64f (patch)
treef1adda18e6df59cfb561a32a7d2034a053e06826 /include/llvm/Type.h
parent8f8e2692705f37d61e1840e799288f2ade1e410f (diff)
Make structs and arrays first-class types, and add assembly
and bitcode support for the extractvalue and insertvalue instructions and constant expressions. Note that this does not yet include CodeGen support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h4
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