[all-commits] [llvm/llvm-project] bdbe15: [llvm-readobj] fix unit test failure on 32bit mach...

antoine moynault via All-commits all-commits at lists.llvm.org
Thu Apr 13 09:29:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdbe15f729834e5ffb20c1fbf5e4ce318ddf749d
      https://github.com/llvm/llvm-project/commit/bdbe15f729834e5ffb20c1fbf5e4ce318ddf749d
  Author: Antoine Moynault <antoine.moynault at linaro.org>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M llvm/test/tools/llvm-readobj/ELF/AArch64/memtag.test
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] fix unit test failure on 32bit machines

Several bots are failing on 32-bit since https://reviews.llvm.org/D145761 was merged
  https://lab.llvm.org/buildbot/#/builders/178/builds/4384

It seems due to the use of uintptr_t (32bit here) for storing 64 bit values.

Issue is fixed by replacing to uint64_t (as suggested by DavidSpickett).

Reviewed By: jhenderson

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




More information about the All-commits mailing list