[llvm][NFC] Remove CV-qualified base class in PassManagerInternal.h#124193
Conversation
|
@llvm/pr-subscribers-llvm-ir Author: Henry Jiang (mustartt) ChangesThis resolves the https://lab.llvm.org/buildbot/#/builders/168/builds/7756 Full diff: https://github.com/llvm/llvm-project/pull/124193.diff 1 Files Affected:
diff --git a/llvm/include/llvm/IR/PassManagerInternal.h b/llvm/include/llvm/IR/PassManagerInternal.h
index 4ada6ee5dd6831..4b6fad9b417889 100644
--- a/llvm/include/llvm/IR/PassManagerInternal.h
+++ b/llvm/include/llvm/IR/PassManagerInternal.h
@@ -23,6 +23,7 @@
#include "llvm/Support/raw_ostream.h"
#include <memory>
#include <utility>
+#include <type_traits>
namespace llvm {
@@ -167,7 +168,7 @@ template <typename IRUnitT, typename ResultT> class ResultHasInvalidateMethod {
// ambiguous if there were an invalidate member in the result type.
template <typename T, typename U> static DisabledType NonceFunction(T U::*);
struct CheckerBase { int invalidate; };
- template <typename T> struct Checker : CheckerBase, T {};
+ template <typename T> struct Checker : CheckerBase, std::remove_cv_t<T> {};
template <typename T>
static decltype(NonceFunction(&Checker<T>::invalidate)) check(rank<1>);
|
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/11619 Here is the relevant piece of the build log for the reference |
Flaky test https://lab.llvm.org/buildbot/#/builders/59/builds/11620 is passing, ignoring. |
This resolves the
-Wignored-qualifierswarning introduced by the new warnign in #121419. First caught in buildbotppc64le-lld-multistage-testhttps://lab.llvm.org/buildbot/#/builders/168/builds/7756