Skip to content

Commit

Permalink
[DAGCombiner] NFC. Mark ByteProvider accessors as const
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294494 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
arpilipe committed Feb 8, 2017
1 parent cc504e8 commit a10aff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4374,8 +4374,8 @@ struct ByteProvider {
}
static ByteProvider getConstantZero() { return ByteProvider(nullptr, 0); }

bool isConstantZero() { return !Load; }
bool isMemory() { return Load; }
bool isConstantZero() const { return !Load; }
bool isMemory() const { return Load; }

bool operator==(const ByteProvider &Other) const {
return Other.Load == Load && Other.ByteOffset == ByteOffset;
Expand Down

0 comments on commit a10aff5

Please sign in to comment.