// These functions must be declared const in order to not be able to modify
// the instance of the class they are called through.
if (ParamCount == 1 &&
- !OperatorDecl->getType()->getAs<FunctionType>()->isConst())
+ !OperatorDecl->getType()->castAs<FunctionType>()->isConst())
return true;
if (isNonConstReferenceType(OperatorDecl->getParamDecl(0)->getType()))
return "false";
case Type::STK_Integral:
- switch (InitType->getAs<BuiltinType>()->getKind()) {
+ switch (InitType->castAs<BuiltinType>()->getKind()) {
case BuiltinType::Char_U:
case BuiltinType::UChar:
case BuiltinType::Char_S:
}
case Type::STK_Floating:
- switch (InitType->getAs<BuiltinType>()->getKind()) {
+ switch (InitType->castAs<BuiltinType>()->getKind()) {
case BuiltinType::Half:
case BuiltinType::Float:
return "0.0f";
case Type::STK_FloatingComplex:
case Type::STK_IntegralComplex:
return getValueOfValueInit(
- InitType->getAs<ComplexType>()->getElementType());
+ InitType->castAs<ComplexType>()->getElementType());
case Type::STK_FixedPoint:
- switch (InitType->getAs<BuiltinType>()->getKind()) {
+ switch (InitType->castAs<BuiltinType>()->getKind()) {
case BuiltinType::ShortAccum:
case BuiltinType::SatShortAccum:
return "0.0hk";