Allow calling GetAs{Non}ConstType() for FunctionTypes.

It's just a no-op, though, rather than an assertion failure as before.
This commit is contained in:
Matt Pharr
2012-03-30 16:55:22 -07:00
parent e9626a1d10
commit c1661eb06b

View File

@@ -2454,15 +2454,13 @@ FunctionType::ResolveUnboundVariability(Variability v) const {
const Type *
FunctionType::GetAsConstType() const {
FATAL("FunctionType::GetAsConstType shouldn't be called");
return NULL;
return this;
}
const Type *
FunctionType::GetAsNonConstType() const {
FATAL("FunctionType::GetAsNonConstType shouldn't be called");
return NULL;
return this;
}