mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Add a const qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -495,9 +495,9 @@ namespace {
|
||||
/// than the complexity of the RHS. This comparator is used to canonicalize
|
||||
/// expressions.
|
||||
class SCEVComplexityCompare {
|
||||
LoopInfo *LI;
|
||||
const LoopInfo *LI;
|
||||
public:
|
||||
explicit SCEVComplexityCompare(LoopInfo *li) : LI(li) {}
|
||||
explicit SCEVComplexityCompare(const LoopInfo *li) : LI(li) {}
|
||||
|
||||
bool operator()(const SCEV *LHS, const SCEV *RHS) const {
|
||||
// Fast-path: SCEVs are uniqued so we can do a quick equality check.
|
||||
|
||||
Reference in New Issue
Block a user