[llvm-bugs] [Bug 47078] New: Avoid doing equality comparisons between floating expressions.(llvm-project/clang-tools-extra/clangd/index/dex/Iterator.cpp:line 427)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 9 23:31:00 PDT 2020


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

            Bug ID: 47078
           Summary: Avoid doing equality comparisons between floating
                    expressions.(llvm-project/clang-tools-extra/clangd/ind
                    ex/dex/Iterator.cpp:line 427)
           Product: clang-tools-extra
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: clangd
          Assignee: unassignedclangbugs at nondot.org
          Reporter: info at ustchcs.com
                CC: llvm-bugs at lists.llvm.org

Avoid doing equality comparisons between floating expressions.

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/clang-tools-extra/clangd/index/dex/Iterator.cpp:line 427

   425  std::unique_ptr<Iterator> Corpus::boost(std::unique_ptr<Iterator>
Child,
   426                                          float Factor) const {
   427    if (Factor == 1)
   428      return Child;
   429    if (Child->kind() == Iterator::Kind::False)
   430      return Child;
   431    return std::make_unique<BoostIterator>(std::move(Child), Factor);
   432  }

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-5.15: Avoid doing equality comparisons between floating
expressions.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200810/74093ac4/attachment.html>


More information about the llvm-bugs mailing list