[all-commits] [llvm/llvm-project] 48b510: [NFC] Fix compiler warnings due to integer compari...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Sep 11 07:32:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 48b510c4bc0fe090e635ee0440e46fc176527d7e
      https://github.com/llvm/llvm-project/commit/48b510c4bc0fe090e635ee0440e46fc176527d7e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-11 (Fri, 11 Sep 2020)

  Changed paths:
    M clang/lib/Lex/Pragma.cpp
    M llvm/lib/Analysis/VectorUtils.cpp
    M llvm/lib/MC/WasmObjectWriter.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp

  Log Message:
  -----------
  [NFC] Fix compiler warnings due to integer comparison of different signedness

Fix by directly using INT_MAX and INT32_MAX.

Patch by: @nullptr.cpp (Yang Fan)

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




More information about the All-commits mailing list