[all-commits] [llvm/llvm-project] b7167c: [mlir] Fix incorrect comparison due to -Wtautologi...
Jie Fu (傅杰) via All-commits
all-commits at lists.llvm.org
Wed Sep 11 20:59:34 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7167c784486581dad3f3188232951b79c6d0fd9
https://github.com/llvm/llvm-project/commit/b7167c784486581dad3f3188232951b79c6d0fd9
Author: Jie Fu <jiefu at tencent.com>
Date: 2024-09-12 (Thu, 12 Sep 2024)
Changed paths:
M mlir/include/mlir/Analysis/Presburger/Utils.h
Log Message:
-----------
[mlir] Fix incorrect comparison due to -Wtautological-constant-out-of-range-compare (NFC)
/llvm-project/mlir/include/mlir/Analysis/Presburger/Utils.h:320:26:
error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
preIndent = (preIndent != std::string::npos) ? preIndent + 1 : 0;
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
/llvm-project/mlir/include/mlir/Analysis/Presburger/Utils.h:335:28:
error: result of comparison of constant 18446744073709551615 with expression of type 'unsigned int' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
preIndent = (preIndent != std::string::npos) ? preIndent + 1 : 0;
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
2 errors generated.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list