Fix a few warnings from GCC (NFC)

This commit is contained in:
Mehdi Amini 2020-10-24 00:22:48 +00:00
parent 48d8af9825
commit 035a6b95c3
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ DEFINE_C_API_PTR_METHODS(MlirContext, mlir::MLIRContext)
DEFINE_C_API_PTR_METHODS(MlirDialect, mlir::Dialect)
DEFINE_C_API_PTR_METHODS(MlirOperation, mlir::Operation)
DEFINE_C_API_PTR_METHODS(MlirBlock, mlir::Block)
DEFINE_C_API_PTR_METHODS(MlirOpPrintingFlags, mlir::OpPrintingFlags);
DEFINE_C_API_PTR_METHODS(MlirOpPrintingFlags, mlir::OpPrintingFlags)
DEFINE_C_API_PTR_METHODS(MlirRegion, mlir::Region)
DEFINE_C_API_METHODS(MlirAttribute, mlir::Attribute)

View File

@ -107,7 +107,7 @@ StringRef TypeParameter::getName() const {
}
llvm::Optional<StringRef> TypeParameter::getAllocator() const {
llvm::Init *parameterType = def->getArg(num);
if (auto *stringType = dyn_cast<llvm::StringInit>(parameterType))
if (isa<llvm::StringInit>(parameterType))
return llvm::Optional<StringRef>();
if (auto *typeParameter = dyn_cast<llvm::DefInit>(parameterType)) {

View File

@ -74,7 +74,7 @@ BufferizeTypeConverter::getResultConversionKind(Type origin, Type converted) {
void mlir::populateBufferizeMaterializationLegality(ConversionTarget &target) {
target.addLegalOp<TensorLoadOp, TensorToMemrefOp>();
};
}
//===----------------------------------------------------------------------===//
// BufferizeFuncOpConverter