[all-commits] [llvm/llvm-project] 314a5d: Simplify a conditional in order to avoid a warning...

Justin Bogner via All-commits all-commits at lists.llvm.org
Wed Aug 16 16:21:39 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 314a5d707fe70369e3e1a6ac561d64884896dbd7
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp

  Log Message:
  Simplify a conditional in order to avoid a warning under MSVC

We were using some convoluted logic here to check if the result of a
`bool` returning function was false, causing MSVC to give a warning
about "'>': unsafe use of type 'bool' in operation". This just removes
the greater-than comparison of the bool against zero.

More information about the All-commits mailing list