[llvm-commits] CVS: llvm/include/llvm/Type.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Oct 29 19:39:05 PST 2003
Changes in directory llvm/include/llvm:
Type.h updated: 1.35 -> 1.36
---
Log message:
Tighten up what we consider to be first class types.
---
Diffs of the changes: (+1 -1)
Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.35 llvm/include/llvm/Type.h:1.36
--- llvm/include/llvm/Type.h:1.35 Mon Oct 20 15:19:15 2003
+++ llvm/include/llvm/Type.h Wed Oct 29 19:38:41 2003
@@ -173,7 +173,7 @@
/// 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
More information about the llvm-commits
mailing list