diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/Type.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp index 53363c15eca..8032424f782 100644 --- a/clang/lib/AST/Type.cpp +++ b/clang/lib/AST/Type.cpp @@ -216,6 +216,10 @@ const FunctionType *Type::getAsFunctionType() const { return getDesugaredType()->getAsFunctionType(); } +const FunctionTypeNoProto *Type::getAsFunctionTypeNoProto() const { + return dyn_cast_or_null<FunctionTypeNoProto>(getAsFunctionType()); +} + const FunctionTypeProto *Type::getAsFunctionTypeProto() const { return dyn_cast_or_null<FunctionTypeProto>(getAsFunctionType()); } |