mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Tighten up what we consider to be first class types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ea8f36a7f
commit
9f6a519027
@ -173,7 +173,7 @@ public:
|
|||||||
|
|
||||||
/// isFirstClassType - Return true if the value is holdable in a register.
|
/// isFirstClassType - Return true if the value is holdable in a register.
|
||||||
inline bool isFirstClassType() const {
|
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
|
/// isSized - Return true if it makes sense to take the size of this type. To
|
||||||
|
Loading…
x
Reference in New Issue
Block a user