projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
207f2d4
)
Add comment
author
Chris Lattner
<sabre@nondot.org>
Tue, 12 Oct 2004 17:08:44 +0000
(17:08 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 12 Oct 2004 17:08:44 +0000
(17:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16937
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Type.h
patch
|
blob
|
history
diff --git
a/include/llvm/Type.h
b/include/llvm/Type.h
index 0fb34c526129d7c1f04c14516a4590ad65322489..fd5dbdd90f79c95fea5c8697c0426ad483f12978 100644
(file)
--- 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;