[WIP] add check for polymorphic functions

This commit is contained in:
2017-05-02 14:59:04 -04:00
parent 0887760de1
commit b3b02df569
5 changed files with 30 additions and 1 deletions

View File

@@ -247,6 +247,11 @@ Type::IsVoidType() const {
return EqualIgnoringConst(this, AtomicType::Void);
}
bool
Type::IsPolymorphicType() const {
return (CastType<PolyType>(GetBaseType()) != NULL);
}
bool
AtomicType::IsFloatType() const {
return (basicType == TYPE_FLOAT || basicType == TYPE_DOUBLE);