• Stephan Bergmann's avatar
    Work around bug in Clang 3.8 · 33ee8e61
    Stephan Bergmann yazdı
    ...that causes
    
    > clang/lib/AST/Type.cpp:1878: bool clang::Type::isConstantSizeType() const: Assertion `!isDependentType() && "This doesn't make sense for dependent types"' failed.
    
    compilation failure in PCodeBufferWalker in basic/source/comp/codegen.cxx
    
    >    static T readParam( sal_uInt8 const *& pCode )
    >    {
    >        short nBytes = sizeof( T );
    >        T nOp1=0;
    >        for ( int i=0; i<nBytes; ++i )
    >            nOp1 |= *pCode++ << ( i * 8);
    >        return nOp1;
    >    }
    
    with loplugin:oncevar.
    
    Change-Id: I25417076549ea538adf013282f3657e0d642d776
    33ee8e61
oncevar.cxx 10.9 KB