[WIP] add check for polymorphic functions
This commit is contained in:
5
type.cpp
5
type.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user