[Mlir-commits] [mlir] fb1dbe2 - [mlir] Remove extra '; ' outside of a function (NFC)

Jie Fu llvmlistbot at llvm.org
Mon Dec 23 06:35:03 PST 2024


Author: Jie Fu
Date: 2024-12-23T22:34:08+08:00
New Revision: fb1dbe24f2ecd0c0915caba8a6321dc57018dc50

URL: https://github.com/llvm/llvm-project/commit/fb1dbe24f2ecd0c0915caba8a6321dc57018dc50
DIFF: https://github.com/llvm/llvm-project/commit/fb1dbe24f2ecd0c0915caba8a6321dc57018dc50.diff

LOG: [mlir] Remove extra ';' outside of a function (NFC)

/llvm-project/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp:51:2:
error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
};
 ^
/llvm-project/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp:97:2:
error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
};
 ^
2 errors generated.

Added: 
    

Modified: 
    mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
index 1a7951282d3f78..49e2d943286645 100644
--- a/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
+++ b/mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
@@ -48,7 +48,7 @@ LLVMTypeConverter::LLVMTypeConverter(MLIRContext *ctx,
 static bool isBarePointer(ValueRange values) {
   return values.size() == 1 &&
          isa<LLVM::LLVMPointerType>(values.front().getType());
-};
+}
 
 /// Pack SSA values into an unranked memref descriptor struct.
 static Value packUnrankedMemRefDesc(OpBuilder &builder,
@@ -94,7 +94,7 @@ static Value unrankedMemRefMaterialization(OpBuilder &builder,
     return Value();
   return builder.create<UnrealizedConversionCastOp>(loc, resultType, packed)
       .getResult(0);
-};
+}
 
 /// MemRef descriptor elements -> MemRefType
 static Value rankedMemRefMaterialization(OpBuilder &builder,


        


More information about the Mlir-commits mailing list