diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-07-01 15:36:41 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-07-02 09:52:30 +0200 |
commit | eb5283064e60f5f133a0b37adf21651d16e9c2e4 (patch) | |
tree | 4382dd404766bd0217b0cb61744de2706dda0905 | |
parent | c8c3664bf5678c1d48ae4fd268dc77a9e0a0c2da (diff) |
update clang sharedvisitor.cxx
This should have been included in 9fbedb792993.
Change-Id: I3b8b1a463c3f85d6cd4a4db14edcfedf01d7e5a9
Reviewed-on: https://gerrit.libreoffice.org/74956
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r-- | compilerplugins/clang/sharedvisitor/sharedvisitor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx b/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx index 66e43b96f67b..a6df13ca33b4 100644 --- a/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx +++ b/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx @@ -410,6 +410,11 @@ public: { if( ignoreLocation( arg )) return true; + if( blockBlock != nullptr ) + { + if( !blockBlock->VisitCaseStmt( arg )) + blockBlock = nullptr; + } if( unnecessaryParen != nullptr ) { if( !unnecessaryParen->VisitCaseStmt( arg )) |