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:
8ea8f36
)
Tighten up what we consider to be first class types.
author
Chris Lattner
<sabre@nondot.org>
Thu, 30 Oct 2003 01:38:41 +0000
(
01:38
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 30 Oct 2003 01:38:41 +0000
(
01:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608
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 b1ce475cecf7411a2002c9e71b29185e1f01afb8..4c9fd1db489e9938372be88d7e590c5a34d4adc8 100644
(file)
--- a/
include/llvm/Type.h
+++ b/
include/llvm/Type.h
@@
-173,7
+173,7
@@
public:
/// isFirstClassType - Return true if the value is holdable in a register.
inline bool isFirstClassType() const {
- return
isPrimitiveType(
) || ID == PointerTyID;
+ return
(ID != VoidTyID && ID < TypeTyID
) || ID == PointerTyID;
}
/// isSized - Return true if it makes sense to take the size of this type. To