forked from OSchip/llvm-project
[DAGCombiner] NFC. Mark ByteProvider accessors as const
llvm-svn: 294494
This commit is contained in:
parent
e9600d861c
commit
045ab08252
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue