[DAGCombiner] NFC. Mark ByteProvider accessors as const

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Artur Pilipenko 2017-02-08 17:59:34 +00:00
parent cc504e80b7
commit a10aff5b13

View File

@ -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;