We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7ea42 commit 6b7420aCopy full SHA for 6b7420a
clang/lib/CIR/CMakeLists.txt
@@ -1,6 +1,8 @@
1
include_directories(${LLVM_MAIN_SRC_DIR}/../mlir/include)
2
include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include)
3
4
+add_compile_options("-Werror=deprecated-declarations")
5
+
6
add_subdirectory(Dialect)
7
add_subdirectory(CodeGen)
8
add_subdirectory(FrontendAction)
clang/lib/CIR/Dialect/IR/CIRTypes.cpp
@@ -583,9 +583,9 @@ Type IntType::parse(mlir::AsmParser &parser) {
583
llvm::StringRef sign;
584
if (parser.parseKeyword(&sign))
585
return {};
586
- if (sign.equals("s"))
+ if (sign == "s")
587
isSigned = true;
588
- else if (sign.equals("u"))
+ else if (sign == "u")
589
isSigned = false;
590
else {
591
parser.emitError(loc, "expected 's' or 'u'");
0 commit comments