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: unassignedclangb...@nondot.org
Reporter: i...@ustchcs.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs