File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ check_c_compiler_flag("-Werror=mismatched-tags" C_SUPPORTS_WERROR_MISMATCHED_TAG
77
77
append_if(C_SUPPORTS_WERROR_MISMATCHED_TAGS "-Werror=mismatched-tags" CMAKE_C_FLAGS)
78
78
append_if(C_SUPPORTS_WERROR_MISMATCHED_TAGS "-Werror=mismatched-tags" CMAKE_CXX_FLAGS )
79
79
80
+ # Silence a false positive GCC -Wunused-but-set-parameter warning in constexpr
81
+ # cases, by marking SelectedCase as used. See
82
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85827 for details. The issue is
83
+ # fixed in GCC 10.
84
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0" )
85
+ check_cxx_compiler_flag("-Wno-unused-but-set-parameter" CXX_SUPPORTS_WNO_UNUSED_BUT_SET_PARAMETER)
86
+ append_if(CXX_SUPPORTS_WNO_UNUSED_BUT_SET_PARAMETER "-Wno-unused-but-set-parameter" CMAKE_CXX_FLAGS )
87
+ endif ()
88
+
80
89
# Installing the headers and docs needs to depend on generating any public
81
90
# tablegen'd targets.
82
91
# mlir-generic-headers are dialect-independent.
Original file line number Diff line number Diff line change @@ -1996,7 +1996,7 @@ void transform::SplitHandleOp::getEffects(
1996
1996
1997
1997
LogicalResult transform::SplitHandleOp::verify () {
1998
1998
if (getOverflowResult ().has_value () &&
1999
- !(*getOverflowResult () >= 0 && * getOverflowResult () < getNumResults ()))
1999
+ !(*getOverflowResult () < getNumResults ()))
2000
2000
return emitOpError (" overflow_result is not a valid result index" );
2001
2001
return success ();
2002
2002
}
You can’t perform that action at this time.
0 commit comments