diff options
Diffstat (limited to 'staging/kdebindings-smokegen/fix-crash.patch')
-rw-r--r-- | staging/kdebindings-smokegen/fix-crash.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/staging/kdebindings-smokegen/fix-crash.patch b/staging/kdebindings-smokegen/fix-crash.patch new file mode 100644 index 000000000..5864da3f3 --- /dev/null +++ b/staging/kdebindings-smokegen/fix-crash.patch @@ -0,0 +1,13 @@ +diff -up smokegen-4.7.0/parser/type_compiler.cpp.orig smokegen-4.7.0/parser/type_compiler.cpp +diff -up smokegen-4.7.0/type_compiler.cpp.orig smokegen-4.7.0/type_compiler.cpp +--- smokegen-4.7.0/type_compiler.cpp.orig 2011-08-02 14:34:08.000000000 +0200 ++++ smokegen-4.7.0/type_compiler.cpp 2011-08-02 14:34:34.000000000 +0200 +@@ -191,6 +191,8 @@ void TypeCompiler::visitParameterDeclara + + void TypeCompiler::visitPtrOperator(PtrOperatorAST* node) + { ++ if ( ! m_session->token_stream ) return; ++ if ( ! token_text(m_session->token_stream->kind(node->op)) ) return; + if (token_text(m_session->token_stream->kind(node->op))[0] == '*') { + QPair<bool, bool> cv = m_visitor->parseCv(node->cv); + pointerDepth.append(cv.first); |