From a10aff5b133f9a9b36106b700e84e75b47bb5361 Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Wed, 8 Feb 2017 17:59:34 +0000 Subject: [PATCH] [DAGCombiner] NFC. Mark ByteProvider accessors as const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294494 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 7f6775422e2c..e3c15b77a262 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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;