summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 7f6775422e2..e3c15b77a26 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -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;
OpenPOWER on IntegriCloud