[all-commits] [llvm/llvm-project] a8f118: [flang] Fix -Wsign-compare in check-call.cpp (NFC)

Jie Fu via All-commits all-commits at lists.llvm.org
Tue Apr 4 07:52:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8f1185a7fdee4183a544370dfbb485b31d4077a
      https://github.com/llvm/llvm-project/commit/a8f1185a7fdee4183a544370dfbb485b31d4077a
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

  Changed paths:
    M flang/lib/Semantics/check-call.cpp

  Log Message:
  -----------
  [flang] Fix -Wsign-compare in check-call.cpp (NFC)

/data/llvm-project/flang/lib/Semantics/check-call.cpp:1234:29: error: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Werror,-Wsign-compare]
  CHECK(index >= 0 && index < actuals.size());
                      ~~~~~ ^ ~~~~~~~~~~~~~~
/data/llvm-project/flang/include/flang/Common/idioms.h:89:20: note: expanded from macro 'CHECK'
                   ^
1 error generated.




More information about the All-commits mailing list