Skip to content

Commit d6fcf7d

Browse files
committed
Also fix constness issues in PatternMatch
1 parent d9ebe03 commit d6fcf7d

File tree

4 files changed

+122
-114
lines changed

4 files changed

+122
-114
lines changed

llvm/include/llvm/Analysis/ScalarEvolutionPatternMatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace llvm {
1919
namespace SCEVPatternMatch {
2020

2121
template <typename Pattern> bool match(const SCEV *S, const Pattern &P) {
22-
return const_cast<Pattern &>(P).match(S);
22+
return P.match(S);
2323
}
2424

2525
template <typename Predicate> struct cst_pred_ty : public Predicate {

0 commit comments

Comments
 (0)