forked from OSchip/llvm-project
Fix a few warnings from GCC (NFC)
This commit is contained in:
parent
48d8af9825
commit
035a6b95c3
|
@ -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)
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -74,7 +74,7 @@ BufferizeTypeConverter::getResultConversionKind(Type origin, Type converted) {
|
|||
|
||||
void mlir::populateBufferizeMaterializationLegality(ConversionTarget &target) {
|
||||
target.addLegalOp<TensorLoadOp, TensorToMemrefOp>();
|
||||
};
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// BufferizeFuncOpConverter
|
||||
|
|
Loading…
Reference in New Issue