mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
3df71e5a3f
GEPArg can only be constructed from int32_t and mlir::Value. Explicitly cast other types (e.g. unsigned, size_t) to int32_t to avoid narrowing conversion warnings on MSVC. Some recent examples of such are: ``` mlir\lib\Dialect\LLVMIR\Transforms\TypeConsistency.cpp: error C2398: Element '1': conversion from 'size_t' to 'T' requires a narrowing conversion with [ T=mlir::LLVM::GEPArg ] mlir\lib\Dialect\LLVMIR\Transforms\TypeConsistency.cpp: error C2398: Element '1': conversion from 'unsigned int' to 'T' requires a narrowing conversion with [ T=mlir::LLVM::GEPArg ] ``` Co-authored-by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com> (cherry picked from commit 89cd345667a5f8f4c37c621fd8abe8d84e85c050) |
||
---|---|---|
.. | ||
Analysis | ||
AsmParser | ||
Bindings/Python | ||
Bytecode | ||
CAPI | ||
Conversion | ||
Debug | ||
Dialect | ||
ExecutionEngine | ||
Interfaces | ||
IR | ||
Parser | ||
Pass | ||
Query | ||
Reducer | ||
Rewrite | ||
Support | ||
TableGen | ||
Target | ||
Tools | ||
Transforms | ||
CMakeLists.txt |