diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-16 15:12:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-16 15:12:05 +0100 |
commit | 49027122436dc061768e1e781d36755ff041d4a9 (patch) | |
tree | 5c8764fd376469cf1faca78015cf2670de5bff32 | |
parent | 0d20c6abe9058e3e164483ca556fab9b7c6df56b (diff) |
Avoid infinite loops in loplugin
...introduced with cab6e6836973a9ddfc5ed9df757e07138328c1c3 "Make
checkIdenticalDefaultArguments more precise", causing older Clang to hang when
compiling specific LO source files.
Change-Id: I99cfcad2f0cd9adccd5aa84d21502f586762217f
-rw-r--r-- | compilerplugins/clang/plugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index 80fff7651ae0..ed179d9b2b65 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -292,6 +292,7 @@ Plugin::IdenticalDefaultArgumentsResult Plugin::checkIdenticalDefaultArguments( if (ce1->getNumArgs() == 0 && ce2->getNumArgs() == 0) { return IdenticalDefaultArgumentsResult::Yes; } + break; } return IdenticalDefaultArgumentsResult::Maybe; } |