OSDN Git Service

[DAGCombiner] NFC. Mark ByteProvider accessors as const
authorArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 8 Feb 2017 17:59:34 +0000 (17:59 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 8 Feb 2017 17:59:34 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294494 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 7f67754..e3c15b7 100644 (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;