[all-commits] [llvm/llvm-project] 900ec9: [UBSan] Cannot negate smallest negative signed int...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Wed Nov 4 10:08:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 900ec97bbe3254329a77d60201421740b3b2e860
      https://github.com/llvm/llvm-project/commit/900ec97bbe3254329a77d60201421740b3b2e860
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-11-04 (Wed, 04 Nov 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

  Log Message:
  -----------
  [UBSan] Cannot negate smallest negative signed integer

Silence warning Undefined Behavior Sanitzer warning:
runtime error: negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long'); cast to an unsigned type to negate this value to itself

Reviewed By: paulwalker-arm

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




More information about the All-commits mailing list