[all-commits] [llvm/llvm-project] 503a26: Silence GCC 7 warning

Kristof Beyls via All-commits all-commits at lists.llvm.org
Tue Jun 16 03:43:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 503a26d8e4d07ed63f4dc46fa1a56468c2e53b5f
      https://github.com/llvm/llvm-project/commit/503a26d8e4d07ed63f4dc46fa1a56468c2e53b5f
  Author: Kristof Beyls <kristof.beyls at arm.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64FastISel.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp

  Log Message:
  -----------
  Silence GCC 7 warning

GCC 7 was reporting "enumeral and non-enumeral type in conditional expression"
as a warning.
The code casts an instruction opcode enum to unsigned implicitly, in
line with intentions; so this commit silences the warning by making the
cast to unsigned explicit.




More information about the All-commits mailing list