diff options
Diffstat (limited to 'lib/Target/SparcV9/SparcV9Internals.h')
-rw-r--r-- | lib/Target/SparcV9/SparcV9Internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h index 41ad8a911e..1de5496cbf 100644 --- a/lib/Target/SparcV9/SparcV9Internals.h +++ b/lib/Target/SparcV9/SparcV9Internals.h @@ -304,8 +304,9 @@ public: Type::PrimitiveID ty = type->getPrimitiveID(); unsigned res; + // FIXME: Comparing types like this isn't very safe... if ((ty && ty <= Type::LongTyID) || (ty == Type::LabelTyID) || - (ty == Type::MethodTyID) || (ty == Type::PointerTyID) ) + (ty == Type::FunctionTyID) || (ty == Type::PointerTyID) ) res = IntRegClassID; // sparc int reg (ty=0: void) else if (ty <= Type::DoubleTyID) res = FloatRegClassID; // sparc float reg class |