[DAGCombiner] NFC. Mark ByteProvider accessors as const

llvm-svn: 294494
This commit is contained in:
Artur Pilipenko 2017-02-08 17:59:34 +00:00
parent e9600d861c
commit 045ab08252
1 changed files with 2 additions and 2 deletions

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;