diff --git a/mlir/include/mlir/Support/InterfaceSupport.h b/mlir/include/mlir/Support/InterfaceSupport.h --- a/mlir/include/mlir/Support/InterfaceSupport.h +++ b/mlir/include/mlir/Support/InterfaceSupport.h @@ -193,6 +193,7 @@ std::array, numInterfaces> elements; std::pair *elementIt = elements.data(); + (void)elementIt; (void)std::initializer_list{ 0, (addModelAndUpdateIterator(elementIt), 0)...}; return InterfaceMap(elements); diff --git a/mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp b/mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp --- a/mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp +++ b/mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp @@ -56,7 +56,7 @@ Type intType = rewriter.getIntegerType(bitwidth); Value signMask = rewriter.create( - loc, intType, rewriter.getIntegerAttr(intType, (1u << (bitwidth - 1)))); + loc, intType, rewriter.getIntegerAttr(intType, (uint64_t(1) << (bitwidth - 1)))); Value valueMask = rewriter.create( loc, intType, rewriter.getIntegerAttr(intType, (1u << (bitwidth - 1)) - 1u));