[all-commits] [llvm/llvm-project] 7978ab: [lldb] fix build issue on MSVC because of missing ...

Ashay Rane via All-commits all-commits at lists.llvm.org
Mon Apr 17 12:39:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7978abd5aef1ba84d7a1cefbc3443245acff2c48
      https://github.com/llvm/llvm-project/commit/7978abd5aef1ba84d7a1cefbc3443245acff2c48
  Author: Ashay Rane <ashay at users.noreply.github.com>
  Date:   2023-04-17 (Mon, 17 Apr 2023)

  Changed paths:
    M lldb/source/Core/DumpRegisterValue.cpp

  Log Message:
  -----------
  [lldb] fix build issue on MSVC because of missing byte-swap builtins

The `__builtin_bswap{32,64}()` builtins (introduced in commit e07a421d)
are missing from MSVC, which causes build errors when compiling LLDB on
Windows (tested with MSVC 19.34.31943.0).  This patch replaces the
builtins with either MSVC's `_byteswap_u{long,64}()` or the original
builtins, or the `bswap_{32,64}()` functions from byteswap.h, depending
on which ones are available.

Reviewed By: bulbazord

Differential Revision: https://reviews.llvm.org/D148541




More information about the All-commits mailing list