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:
6
type.cpp
6
type.cpp
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user