summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2017-02-08 17:59:34 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2017-02-08 17:59:34 +0000
commit045ab082525d09b1749ca6eba9ac2dc3d30dc6d8 (patch)
tree321b9507fd194de89528829e4ad3ee8b5ec6a4c9 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parente9600d861cf898b51c33218ea55a924292ba7955 (diff)
downloadbcm5719-llvm-045ab082525d09b1749ca6eba9ac2dc3d30dc6d8.tar.gz
bcm5719-llvm-045ab082525d09b1749ca6eba9ac2dc3d30dc6d8.zip
[DAGCombiner] NFC. Mark ByteProvider accessors as const
llvm-svn: 294494
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-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