[PATCH] D131529: Missing climits header file in MemRefUtils.h

Jinyun Ye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 16:14:05 PDT 2022


JoeyYe_HW created this revision.
JoeyYe_HW added a reviewer: llvm-commits.
Herald added subscribers: bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a project: All.
JoeyYe_HW requested review of this revision.
Herald added subscribers: stephenneuendorffer, nicolasvasilache.
Herald added a project: MLIR.

MemRefUtils.h uses UINT_MAX, which is not included in current header files list. This patch include climits to avoid compilation error in this header file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131529

Files:
  mlir/include/mlir/ExecutionEngine/MemRefUtils.h


Index: mlir/include/mlir/ExecutionEngine/MemRefUtils.h
===================================================================
--- mlir/include/mlir/ExecutionEngine/MemRefUtils.h
+++ mlir/include/mlir/ExecutionEngine/MemRefUtils.h
@@ -28,6 +28,7 @@
 #include <functional>
 #include <initializer_list>
 #include <memory>
+#include <climits>
 
 #ifndef MLIR_EXECUTIONENGINE_MEMREFUTILS_H_
 #define MLIR_EXECUTIONENGINE_MEMREFUTILS_H_


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131529.451157.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220809/a1310c5f/attachment.bin>


More information about the llvm-commits mailing list