Skip to content

Commit 4405f72

Browse files
authored
[llvm][NFC] Remove CV-qualified base class in PassManagerInternal.h (#124193)
This resolves the `-Wignored-qualifiers` warning introduced by the new warnign in #121419. First caught in buildbot `ppc64le-lld-multistage-test` https://lab.llvm.org/buildbot/#/builders/168/builds/7756 --------- Co-authored-by: Henry Jiang <[email protected]>
1 parent 0013264 commit 4405f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/IR/PassManagerInternal.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "llvm/IR/Analysis.h"
2323
#include "llvm/Support/raw_ostream.h"
2424
#include <memory>
25+
#include <type_traits>
2526
#include <utility>
2627

2728
namespace llvm {
@@ -167,7 +168,7 @@ template <typename IRUnitT, typename ResultT> class ResultHasInvalidateMethod {
167168
// ambiguous if there were an invalidate member in the result type.
168169
template <typename T, typename U> static DisabledType NonceFunction(T U::*);
169170
struct CheckerBase { int invalidate; };
170-
template <typename T> struct Checker : CheckerBase, T {};
171+
template <typename T> struct Checker : CheckerBase, std::remove_cv_t<T> {};
171172
template <typename T>
172173
static decltype(NonceFunction(&Checker<T>::invalidate)) check(rank<1>);
173174

0 commit comments

Comments
 (0)