[lldb-dev] [Bug 38383] New: Missing negation in if statement, error message will be ignored

via lldb-dev lldb-dev at lists.llvm.org
Tue Jul 31 02:42:33 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38383

            Bug ID: 38383
           Summary: Missing negation in if statement, error message will
                    be ignored
           Product: lldb
           Version: 6.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: nat-llvmbugs at mulle-kybernetik.com
                CC: llvm-bugs at lists.llvm.org

https://github.com/llvm-mirror/lldb/blob/a56b1c63bd3cd0a7a4e90045f804b0c66e6a4ca3/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp#L895

The code should read instead:

```
            if (! install_diagnostics.Diagnostics().size())
              err.SetErrorString("couldn't install checkers, unknown error");
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180731/f4d38577/attachment.html>


More information about the lldb-dev mailing list