[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Tue Jan 24 16:32:22 UTC 2017


 compilerplugins/clang/dynexcspec.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 09768d8ee4099907569bb27311eb35377fcde5cc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 24 17:30:51 2017 +0100

    Use proper check for FunctionProtoType
    
    ...as at least MSVC SAL_CALL-annotated functions have an AttributeType wrapped
    around the FunctionProtoType.
    
    Change-Id: Ic085e2e3649e6b2fc8ca380047133a8edbe20589

diff --git a/compilerplugins/clang/dynexcspec.cxx b/compilerplugins/clang/dynexcspec.cxx
index d92bf4f..7ca7ba0 100644
--- a/compilerplugins/clang/dynexcspec.cxx
+++ b/compilerplugins/clang/dynexcspec.cxx
@@ -47,7 +47,7 @@ public:
         if (ignoreLocation(decl)) {
             return true;
         }
-        auto proto = dyn_cast<FunctionProtoType>(decl->getType());
+        auto proto = decl->getType()->getAs<FunctionProtoType>();
         if (proto == nullptr || proto->getExceptionSpecType() != EST_Dynamic) {
             return true;
         }


More information about the Libreoffice-commits mailing list